Support » How-To and Troubleshooting » [Resolved] Changing site URL – posts showing directory

[Resolved] Changing site URL – posts showing directory

  • 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!

    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.

    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

    I have setup permalinks so that they rewrite:

    # 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]

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

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