Forum Moderators: phranque

Message Too Old, No Replies

need help

         

pinkopanter

9:29 pm on Feb 14, 2004 (gmt 0)

10+ Year Member



Hi,
I searched but couldn't find the answer so far.
I use the famost smartsearch script on my site.
Here is what I got so far

RewriteEngine on
RewriteBase /cgi-bin/search
RewriteRule ^categories(.*)\.html$ search.cgi?keywords=$1 [L]

It works but not the way I really want. When I call mysite.com/categories/keyword.html or mysite.com/categorieskeyword.html works fine.

What I actualy want is to remove this subdirectory (categories) and have it this way:
mysite.com/keyword.html

Thanks

lemat

11:20 pm on Feb 14, 2004 (gmt 0)

10+ Year Member



so why don't you try:
RewriteRule (.*)\.html$ search.cgi?keywords=$1 [L]