When a site is hosted on a sub directory (like http://www.mysite.com/drupal_folder), the subdirectory is included to perform a 404 search.
For example, when I try to access to http://www.mysite.com/drupal_folder/does/not/exist , 404search performs a search for "drupal folder does not exist".
Would it be possible to change this?

CommentFileSizeAuthor
#4 search404.module.patch1.86 KBtenrapid

Comments

David Stosik’s picture

Yup!
Anyone here?

larssg’s picture

Yes, I am here. However, unless someone contributes a patch, you'll have to be patient - I don't have the time to fix it right now.

David Stosik’s picture

Okay, I just wanted an answer, to be sure...

tenrapid’s picture

Status: Active » Needs review
StatusFileSize
new1.86 KB

Here is a patch. $_GET['q'] is used for extracting the keys.

This patch solves also the infinite loop issue: http://drupal.org/node/58147

chrisd’s picture

works good, so far...

Thanks a lot tenrapid !

David Stosik’s picture

This patch doesn't work for me...
Before applying the patch, search 404 returns a search for "drupal_folder my terms", and after, 404search doesn't work at all, I just get a "Page not found - The page you requested was not found.".
Which version of Drupal should I use it with?

tenrapid’s picture

The patch will not work with Drupal older than 4.7 RC2.

David Stosik’s picture

Too bad I'm still on Drupal 4.7 beta 6 because I have to present it tomorrow, and I can't migrate it fast... :(
Tnaks for the patch, I will you use it as soon as I get to last RC! ;)

larssg’s picture

Status: Needs review » Closed (fixed)

Patch committed. Thank you all for reporting, researching and fixing this and the infinite loop problem.