WordPress – Blog redirection 301

At the beginning my blog was accessible from example.com and i have move all files to “blog” folder and create blog.example.com redirection from ovh.

Works fine but old links from google give me a 404 so i tried to make some redirection 301 like:

Read More
Redirect 301 /my-post http://blog.example.com/my-post

but that give me a inifinite loop.

Related posts

1 comment

  1. Not sure if it helps but try absolute paths like:

    Redirect 301 http://example.com/blog/my-post http://blog.example.com/my-post
    

    or

    Redirect 301 /blog/my-post http://blog.example.com/my-post
    

    Because the code Redirect 301 /my-post http://blog.example.com/my-post
    will actually redirect /my-post requests regardless if it is

    http://blog.example.com/my-post   
    

    or

    http://example.com/blog/my-post
    

Comments are closed.