Quote:
Originally Posted by cooldude7
these both giving me 500 error
RewriteRule ^(.*)$ /search.php?s=$1 [L]
RewriteRule ^([^/]*)$ /search.php?s=$1 [L]
can anybody help. ?
what i wanted to do is
domain.com/anything to go to domain.com/search.php?s=anything
thanks
|
Either of those lines alone will give you a 500 error.
You definitely need either:
RewriteCond %{REQUEST_FILENAME} !-f
or:
RewriteCond !search.php
Without either, /Ray redirects to search.php?Ray
search.php?Ray redirects to search.php?search.php
search.php?search.php redirects again to search.php?search.php
round and round in a circle
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids