• In subdirectory installation blog
    the custom permalink structure set to /%postname%/
    The posts url now appear
    as http://domain.com/blog/blog/postname
    Link to post

    Suspect that the .htacess is rewriting and adding

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . /blog/index.php [L]

    Why and how can this be avoided?

Viewing 1 replies (of 1 total)
  • Why?

    Because you’re in a subfolder install and WordPress inserts the /blog/ on the main site only to prevent collisions between URLs on the main site and subsite names.

    It;s not just the htaccess, go look under Super Admin -> Sites and edit the main site. You can remove it, but like I noted above – there’s noting to prevent url collisions.

Viewing 1 replies (of 1 total)

The topic ‘Posts Urls are incorrect’ is closed to new replies.