tiagolacerda77
Member
Posted 1 year ago #
Hi there,
In my website, I have 3 levels of menu navigantion. Something like this:
- Home
- Hotsites
- Hotsite1
- Page1
- Page2
- Page3
- Hotsite2
- Page1
- Page2
- Page3
- Hotsite3
- Page1
- Page2
- Page3
- Contact
How can I create a rule to always redirect from a subdirectory to a specfic child page of this subdirectory.
For example:
From:
...mysite.com/hotsites/(*hotsite-name*)
To:
...mysite.com/hotsites/(*hotsite-name*)/page1
Thanks!
http://wordpress.org/extend/plugins/redirection/
tiagolacerda77
Member
Posted 1 year ago #
I tried something like this:
Source:
mysite.com/hotsites/(.*)
Target:
mysite.com/hotsites/$1/page1
It almost works. But the browser returns this URL (if ".*" is "hotsite"):
mysite.com/hotsites/hotsite1/page1/page1/page1/page1/page1/page1/page1/page1/page1
What should I to avoid this repeating last part of the URL???
Please, someone help me!
tiagolacerda77
Member
Posted 1 year ago #