• Hi, I used softaculous to install wordpress on my site. For some reason the URL’s of my posts are showing keystonecandle.com/blog/blog/…
    instead of keystonecandle.com/blog/…

    The home page shows up ok but if you click on an actual post it changes to the double /blog/

    How can I get rid of the second /blog/ out of the URL?

    https://keystonecandle.com/blog/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Check your permalink settings in WordPress – they may be using a customized URL and adding the extra /blog in the URL path.

    Thread Starter keystonecandle

    (@keystonecandle)

    So I checked my permalink settings and they look like this…

    Default https://keystonecandle.com/blog/?p=123
    Day and name https://keystonecandle.com/blog/blog/2014/04/06/sample-post/
    Month and name https://keystonecandle.com/blog/blog/2014/04/sample-post/
    Numeric https://keystonecandle.com/blog/blog/archives/123
    Post name https://keystonecandle.com/blog/blog/sample-post/

    so where do I go to remove the second /blog/ from them. I have access to my .htaccess file and the config.php file but I’m not sure what to look for.

    Thread Starter keystonecandle

    (@keystonecandle)

    I think this might be the issue, it is in my wp-config file…

    /* Multisite */
    define(‘WP_ALLOW_MULTISITE’, true);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘keystonecandle.com’);
    define(‘PATH_CURRENT_SITE’, ‘/blog/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Is it because I have the Multisite enabled? Is it required? My other blog uscandleco.com/wp/ don’t have this entire section in the wp-config and only has 1 wp/ in the permalink addresses.

    If you’re running multisite, this would be potentially dangerous to remove as it may impact other wordpress sites under your multisite install. Can you pull a copy of your site down to test on a local development machine? Then you can test to see if this would be dangerous to remove by copying it and removing it from your wp-config file. If things break, put it back in and you’ll have an answer (but not necessarily a solution).

    Hey keystonecandle,
    Did you find any solution for this issue as I am also facing the same?

    Thread Starter keystonecandle

    (@keystonecandle)

    Hi Codie,
    I didn’t exactly find the issue but and pretty confident that the reason I have /blog/blog/ is because of installing it with the “multisite” option.

    The first /blog/ is the main blog directory, the second blog is my actual blog. If I created a second blog and named the directory /article, then my urls would read /blog/article/

    Someone who knows more, correct me if I am wrong but this seems like the logical explanation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘post url showing blog/blog/…’ is closed to new replies.