HDFilmMaker2112 Posted June 12, 2012 Share Posted June 12, 2012 I'm having a bizarre issue with Mod_Rewrite. When I type mydomain.com/signup into my browser it's going to signup.php not index.php?signup as expected. It seems my server is first looking for a file that has file name of signup. I noticed this earlier too because I have a file called signup.css, and it was loading that when I went to /signup; but didn't think much of it at the time. RewriteEngine on RewriteBase / RewriteRule ^signup$ index.php?signup RewriteRule ^signup/(?:$|\?(?:.+)) index.php?signup$1 [QSA] RewriteRule ^activation/(?:$|\?(?:.+)) activate.php?$1 [QSA] AddType x-mapp-php6 .php Any ideas on what's happening here? Quote Link to comment https://forums.phpfreaks.com/topic/264025-bizarre-issue-with-mod_rewrite-or-something-else/ Share on other sites More sharing options...
RobertP Posted June 12, 2012 Share Posted June 12, 2012 not tested Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/?([a-zA-Z0-9-]+)(?:/(.*))?$ index.php?$1 Quote Link to comment https://forums.phpfreaks.com/topic/264025-bizarre-issue-with-mod_rewrite-or-something-else/#findComment-1353063 Share on other sites More sharing options...
HDFilmMaker2112 Posted June 12, 2012 Author Share Posted June 12, 2012 not tested Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/?([a-zA-Z0-9-]+)(?:/(.*))?$ index.php?$1 I unfortunately only want to rewrite specific URLs so something that's does everything won't work. Which I'm not mistaken that does? Quote Link to comment https://forums.phpfreaks.com/topic/264025-bizarre-issue-with-mod_rewrite-or-something-else/#findComment-1353064 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.