subfolder to new domain 301 Redirect in htaccess (3 posts)

  1. alexjamesbrown
    Posted 3 years ago #

    i have a site currently on http://www.oldsite.com/blog
    so there's posts on url's like http://www.oldsite.com/blog/some-category/some-post-name

    what i want to do is redirect these to http://www.newsite.com/blog/some-category/some-post-name

    Currently i've got this in my htaccess:

    Options +FollowSymLinks
    RewriteEngine on
    RedirectMatch 301 ^/blog/$ http://newiste.com/blog

    But this is obviously only redirecting the root of the site.

    How can I get the rest to re-direct properly?

  2. dannymoe34
    Posted 3 years ago #

    you can't do it with pretty permalinks

  3. alexjamesbrown
    Posted 3 years ago #

    surely pretty permalinks don't matter...

    redirect http://www.oldsite.com/blog/{x} to http://www.newsite.com/blog{x}


Topic Closed

This topic has been closed to new replies.

About this Topic