Support » How-To and Troubleshooting » Redirecting to root

Redirecting to root

  • I had wordpress in “blog” folder and it was accessible under mysite.com/blog with a different homepage at mysite.com/. But then I decided to power the root by wordpress. So, I changed the blog address url in admin settings to mysite.com and since the core files were still in “blog” folder I let the WordPress address (URL) be the same i.e mysite.com/blog.

    Then I moved index.php and .htaccess to the root and edited index.php to reflect the location of core files to require(‘./blog/wp-blog-header.php’).

    I also added a 301 redirect in .htaccess to redirect all the pages of /blog to /.

    Now the problem is that the old Pages (wordpress Pages) indexed by the google get redirected correctly but the old urls of the Posts do not get redirected. I also went to permalinks page and saved it again without making any changes. My permalinks are set to /%category%/%postname%/ with category base “fashion”.

    Am I missing something or is it like this only. Does the wordpress not redirect old post urls ?

Viewing 1 replies (of 1 total)
  • I also added a 301 redirect in .htaccess to redirect all the pages of /blog to /.

    this should not be necessary as wordpress should handle that

Viewing 1 replies (of 1 total)
  • The topic ‘Redirecting to root’ is closed to new replies.
Skip to toolbar