hackalive Posted January 15, 2012 Share Posted January 15, 2012 Hi Guys, This is my so far mod_rewrite RewriteEngine On RewriteCond %{REQUEST_URI} !-f RewriteCond %{REQUEST_URI} !-d RewriteRule ^([^/.]+)/?$ /index.php?page=$1 [L] Now I want to know how i can remove the .php extension from the end of SPECIFIC files (i.e., login.php so I can do login/xyz whith no .php) Cheers in advance Link to comment https://forums.phpfreaks.com/topic/255058-target-specific-file/ Share on other sites More sharing options...
trq Posted January 15, 2012 Share Posted January 15, 2012 There is nothing in that rule that says your urls need to contain .php anywhere. Link to comment https://forums.phpfreaks.com/topic/255058-target-specific-file/#findComment-1307835 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.