Forum Moderators: phranque
I would like to do a 301 redirect for the following:
http://www.example.com/a/b/c/... now redirects to
http://www.example.com/a/b/e/...
[... may represent any number of further sub-directories.]
So basically, a request for http://www.example.com/a/b/c/dir1 should redirect to http://www.example.com/a/b/e/dir1/
Similarly, a request for http://www.example.com/a/b/c/dir2 should redirect to http://www.example.com/a/b/e/dir2/
Any inputs would be appreciated. If possible, please do direct me to threads which discuss the same issue. I tried looking up many posts, but could not find anything concrete.
Thanks in advance.
In the example: a request for http://www.example.com/a/b/c/dir1 should redirect to http://www.example.com/a/b/e/dir1/
In the above the first level directory namely "a" would also be changing as there are many directories.
So,
http://www.example.com/a/b/c/dir1 should redirect to http://www.example.com/a/b/e/dir1/
http://www.example.com/x/b/c/dir1 should redirect to http://www.example.com/x/b/e/dir1/
http://www.example.com/y/b/c/dir1 should redirect to http://www.example.com/y/b/e/dir1/ and so on...