galvin Posted November 17, 2011 Share Posted November 17, 2011 I have a "clean" url of mysite.com/admin and I simply want that to bring up the "actual" page mysite.com/admin.php. I tried the code below and several variations, but it's not working. Anyone tell me what I'm doing wrong?... <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^([^/\.]+)/admin$ admin.php [L] </IfModule> Anyone? Link to comment https://forums.phpfreaks.com/topic/251321-cant-get-the-simplest-of-redirects-right/ Share on other sites More sharing options...
galvin Posted November 17, 2011 Author Share Posted November 17, 2011 Got it to work with this below. Hope I did it right... RewriteRule ^admin admin.php [L] Link to comment https://forums.phpfreaks.com/topic/251321-cant-get-the-simplest-of-redirects-right/#findComment-1288992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.