• Resolved reneequinn

    (@reneequinn)


    Recently launched a site and have been looking through Googles Webmaster tools which is highlighted that whilst pages are showing the correct directory structure, posts are not. Further investigation highlighted that it’s got nothing to do with Google or Yoast SEO that I’m using, but something strange that I have done and I cannot work it out!

    ISSUE
    Page address structure: http://www.sitename.com/pagename/
    Post address structure: http://www.sitename.com/directory/category/postname

    I want it so that the post address does not include the directory.

    SETTINGS
    I have installed wordpress core files in a separate directory, so my settings read:

    WordPress address (URL): http://www.sitename.com/directory/
    Site address (URL): http://www.sitename.com

    PERMALINKS
    I have setup permalinks so that they rewrite:
    /directory/%category%/%postname%/

    .HTACCESS
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /directory/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /directory/index.php [L]
    </IfModule>

    Anyone know what I’ve done wrong?
    Thanks in advance

  • The topic ‘Changing site URL – posts showing directory’ is closed to new replies.