WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting to root (2 posts)

  1. nims
    Member
    Posted 5 years ago #

    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 ?

  2. Samuel B
    moderator
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic