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 https://forums.phpfreaks.com/topic/247154-question-about-url-with-end-character/ 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 https://forums.phpfreaks.com/topic/247154-question-about-url-with-end-character/#findComment-1269519 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 https://forums.phpfreaks.com/topic/247154-question-about-url-with-end-character/#findComment-1269648 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.