Jump to content

RewriteRule trailing dot dropped


AaZmaN

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.