Question

Need help with an 301 htaccess redirect rule doing the following for all the files in these paths:

www.name.com/wordA/wordB/* to www.name.com/new_word/wordA/wordB/*

we are basically adding "new_word" to the new url string.

Was it helpful?

Solution

Like this:

RewriteRule ^wordA/wordB/.*$ /new_word/$0 [R=301]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top