.htaccess - htaccess 301 to dynamic URLs redirect to New dynamic URLs -


i want recirect old dynamic urls new dynamic urls follows :

http://example.com/test1/parent_record/requested_record http://example.com/test/detail/requested_record

any suggestion how it?

you can use generic redirectmatch rule as first rule:

redirectmatch 301 ^/test1/[^/]+/(.+)$ /test/detail/$1 

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -