![]() |
htaccess rewrite rule help needed.
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 |
i tried this
RewriteEngine On <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /search.php?s=$1 [L] </IfModule> but if i access domain.com/somefile.php it goes to search.,., wtf |
See what this does:
ReWriteRule ^(.*)$ search.php?search.php?s=$1 Notice the removal of '/' from the beginning of search.php If anything, ping me on ICQ and I'll try and help further. |
Any luck? did you get it working?
|
Quote:
and even the script is encrypted.,., |
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) search.php?s=$1 is mine. |
Quote:
|
Quote:
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 |
Quote:
okie., Quote:
Quote:
gives lots of errors. RewriteCond !search.php gives 500 thanks for your time., |
Quote:
maybe this will interest you, i did this for someone a while back, they wanted Code:
domain.com/search/search-term.html Code:
Options +FollowSymLinks |
All times are GMT -7. The time now is 06:48 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123