UnknownPlayer Posted September 14, 2011 Share Posted September 14, 2011 Hi, i have this code at .htaccess file: RewriteEngine on RewriteRule ^(login|registracija|kategorije|posmatram|admin)$ ./$1.php [L,QSA] Now when i go to www.example.com/login it works fine, but when i go to www.example.com/login/ with "/" on end, it doesnt work, what should i change at code to work on both ? Quote Link to comment Share on other sites More sharing options...
cags Posted September 15, 2011 Share Posted September 15, 2011 RewriteEngine on RewriteRule ^(login|registracija|kategorije|posmatram|admin)/?$ ./$1.php [L,QSA] Quote Link to comment Share on other sites More sharing options...
UnknownPlayer Posted September 15, 2011 Author Share Posted September 15, 2011 Thanks.. works fine. Quote Link to comment 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.