• Resolved pixel.jvc

    (@pixeljvc)


    Hi

    I had wordpress 2 working in the /wordpress/ folder. WordPress 3 was installed in /wordpress3/ and I migrated the v2 blog into a subsite of /wordpress3/ as /wordpress3/folder1/

    Now there is no actual folder1 – its virtual.

    Question is how do I:

    1. Redirect /wordpress/2009/10/10/postname to /wordpress3/folder1/2009/10/10/postname

    2. Redirect the default blog i.e. /wordpress3/ to /wordpress3/folder1.

    I’ve tried many things out with my htaccess file, in the root of the site, in the old v2 folder etc but the only thing I got to work was redirecting /wordpress (without the slash) to /wordpress3/folder1/ using a 301 redirect.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pixel.jvc

    (@pixeljvc)

    First part solved:

    htaccess with:

    RedirectMatch 301 /wordpress/(.*)/(.*)/(.*)/(.*)/ http://domain.com/wordpress3/folder1/$1/$2/$3/$4/

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    1. Redirect /wordpress/2009/10/10/postname to /wordpress3/folder1/2009/10/10/postname

    This would be better:
    RewriteRule ^wordpress/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ http://domain.com/wordpress3/folder1/$1/$2/$3/$4 [L,R=301]

    It checks ONLY for the numbers.

    Or this:
    RewriteRule ^wordpress/(.*)$ http://domain.com/wordpress3/folder1/$1 [L,R=301]

    After all, you moved it all 🙂

    2. Redirect the default blog i.e. /wordpress3/ to /wordpress3/folder1.

    This would be about right. This will ONLY move the YYYY/MM/DD/POSTNAME urls.
    RewriteRule ^wordpress3/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ http://domain.com/wordpress3/folder1/$1/$2/$3/$4 [L,R=301]

    Thread Starter pixel.jvc

    (@pixeljvc)

    Thanks a lot!

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

The topic ‘/wordpress/ v2 moved to /wordpress3/folder1/ v3’ is closed to new replies.