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 ? 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] 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. 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
Archived
This topic is now archived and is closed to further replies.