AaZmaN Posted September 29, 2008 Share Posted September 29, 2008 Hi everybody! Hope anyone had this problem and knows the solution... I am trying to rewrite the address as follows: RewriteRule ^([a-zA-Z.]+)/?$ index.php?req=$1 [L] I need this to rewrite the address 'mydomain.com/some.category.' to 'index.php?var=some.category.' (with trailing '.' dot) Everything works fine except the trailing dot is dropped. The $var variable is without dot from the end. Does anybody know why it is dropped and how to fix it? Link to comment https://forums.phpfreaks.com/topic/126309-rewriterule-trailing-dot-dropped/ Share on other sites More sharing options...
corbin Posted September 29, 2008 Share Posted September 29, 2008 Try RewriteRule ^([a-zA-Z\.]+)/?$ index.php?req=$1 [L] Doubt that's it but worth a try. Link to comment https://forums.phpfreaks.com/topic/126309-rewriterule-trailing-dot-dropped/#findComment-653386 Share on other sites More sharing options...
AaZmaN Posted September 30, 2008 Author Share Posted September 30, 2008 Try RewriteRule ^([a-zA-Z\.]+)/?$ index.php?req=$1 [L] Doubt that's it but worth a try. It doesn't help... the dot in a class definition doesn't have any special meaning... I tried it however.. Link to comment https://forums.phpfreaks.com/topic/126309-rewriterule-trailing-dot-dropped/#findComment-653654 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.