galvin Posted December 27, 2011 Share Posted December 27, 2011 If I do NOT want to use "Multiviews", how would I write the Rewrite rule for the following... I want to rewrite www.mydomain.com/profile to www.mydomain.com/profile.php I assumed it would be this below, but it's not working... Options +FollowSymlinks RewriteEngine on RewriteRule ^profile$ /profile.php [NC,L] Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/253906-simple-rewrite-without-using-multiviews/ Share on other sites More sharing options...
premiso Posted December 28, 2011 Share Posted December 28, 2011 I think your main issue is not having the RewriteBase (I think thats what it is) set to be /, without that you need to add the beginning slash: RewriteRule ^/profile$ /profile.php [NC,L] And see how that goes. Also make sure that MultiViews is turned off as that could be affecting it too. Quote Link to comment https://forums.phpfreaks.com/topic/253906-simple-rewrite-without-using-multiviews/#findComment-1301733 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.