Forums

Redirection
Reg expression - Help (3 posts)

  1. 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/

  2. 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!

  3. tiagolacerda77
    Member
    Posted 1 year ago #

    Anyone?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic