View Single Post
Old 12-20-2011, 08:55 AM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by cooldude7 View Post
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
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote