unemployment Posted April 28, 2011 Share Posted April 28, 2011 My rewrite rule for RewriteRule ^browser/(.*)$ /browser_support.php?c=$1 [L] is failing. I want browser_support.php to be mysite.com/browser rather than mysite.com/browser_support.php . All the other rewrite rules work. Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^u/(.*)$ /profile.php?u=$1 [L] RewriteRule ^c/(.*)$ /company.php?c=$1 [L] RewriteRule ^browser/(.*)$ /browser_support.php?c=$1 [L] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://mysite.com/ [R=301,L] ErrorDocument 404 /404.php Quote Link to comment https://forums.phpfreaks.com/topic/234931-rewrite-rule-error/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.