• ok, i have at site a blog.mysite.com, and recently migrated all content to a new wp install at mysite.com.

    i want to redirect all of the posts from blog.mysite.com to mysite.com and also account for permalink structure.

    blog.mysite.com is /%year%/%monthnum%/%day%/%postname%/

    mysite.com is /%category%/%postname%/

    the goal is if anyone goes to

    blog.mysite.com /%year%/%monthnum%/%day%/%postname%/

    they will be redirected to

    mysite.com is /%category%/%postname%/

    i want to ultimately delete all content at blog.mysite.com as well, so i wound want to make this work via .htaccess after it’s deleted. i do not want to use a plugin to accomplish this.

    i can’t seem to work out exactly how to do this in .htaccess using mod_rewrite.

    also, both sites live in their own directories on the server.

    /blog.mysite.com and /mysite.com

    thanks so much for your help!

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘redirect subdomain to root domain & redirect old permalinks’ is closed to new replies.