Title: [Plugin: Redirection] Reg expression &#8211; Help
Last modified: August 20, 2016

---

# [Plugin: Redirection] Reg expression – Help

 *  [tiagolacerda77](https://wordpress.org/support/users/tiagolacerda77/)
 * (@tiagolacerda77)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-reg-expression-help/)
 * 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/](http://wordpress.org/extend/plugins/redirection/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [tiagolacerda77](https://wordpress.org/support/users/tiagolacerda77/)
 * (@tiagolacerda77)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-reg-expression-help/#post-2659676)
 * 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!
 *  Thread Starter [tiagolacerda77](https://wordpress.org/support/users/tiagolacerda77/)
 * (@tiagolacerda77)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-reg-expression-help/#post-2659805)
 * Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Redirection] Reg expression – Help’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [tiagolacerda77](https://wordpress.org/support/users/tiagolacerda77/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-reg-expression-help/#post-2659805)
 * Status: not resolved