.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

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -