Redirection Loop. What is proper regex?
-
Hi Guys.
I need to create redirection like:
http://example.com/foo-(.*)->http://example.com/bar/foo-$1Now I use:
foo-(.*)->bar/foo-$1.But anytime it hits match
foo-test->bar/foo-test-> hits againbar/bar/foo-testetc…How could I prevent this behaviour.
For example if I will put this in htaccess:
RedirectMatch 301 ^foo-(.*)/$ /bar/foo-$1/it hits only once. The same goes withRewriteRule.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Redirection Loop. What is proper regex?’ is closed to new replies.