Import of .htaccess rules removes $ from match pattern?
-
I am migrating a set of rules from my .htaccess file into Redirection. During the process it appears that the $ is stripped from the match pattern. Example:
RewriteRule ^contact(/?)$ /contact-us/ [R=301,L]
The match pattern in Redirection’s rule becomes
^/contact(/?)
.When visiting the /contact-us/ URL, the rule matches since it starts with “/contact” and causes an endless loop. Is this a bug in the import parsing?
Manually adding the $ to the rule fixes this behavior.
The path is also changed to /contact-us/-us/-us/-us … until the browser kills the redirect loop. I haven’t looked into the cause of this behavior which is also incorrect.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Import of .htaccess rules removes $ from match pattern?’ is closed to new replies.