• I am trying desperately to remove the /blog slug from a website I am working on. This website is NOT a multisite, nor do I intend for it to be one. I just need a straightforward, step-by-step approach to remove the /blog slug from all page URLs.

    When I enter only the domain (www.alfts.com), it takes me to the home page. When I click on the logo, it adds /blog to the end of the URL. This site is not a blog, and I would like to remove this from all URLs. I really wish WordPress provided a one-click solution to this problem.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter colwrigh

    (@colwrigh)

    Thank you for your prompt response. I’ve read this guide before, but I can’t find the .htaccess file anywhere. I’m using FileZilla and I have enabled “Force showing hidden files”, but the file is nowhere to be found. Should I try a different FTP client?

    Not yet. Does your site currently use the default permalink structure? If “yes”, then you will almost certainly not have an .htaccess file in the /blog folder – in which case you can safely ignore the instructions relating to that file.

    Thread Starter colwrigh

    (@colwrigh)

    Right now it is using Post name as the structure.

    In that case, you will have an .htaccess file. It will be in the same folder as your wp-config.php file (presumably the /blog folder).

    Thread Starter colwrigh

    (@colwrigh)

    I still don’t see it anywhere. I have followed the instructions without modifying .htaccess, and everything seems to work okay, except now the page names don’t appear in the address bar. The blog slug is gone (hooray!), but the page names are gone as well(boo!).

    Thread Starter colwrigh

    (@colwrigh)

    Ok, I changed the structure to Post names and now I am getting a 404 error

    You need to locate that .htaccess file in the blog folder.

    Thread Starter colwrigh

    (@colwrigh)

    I’m going to try a different FTP client. Filezilla isn’t showing me any hidden files.

    Thread Starter colwrigh

    (@colwrigh)

    Do you think the hidden files aren’t showing because it is an SFTP server?

    Thread Starter colwrigh

    (@colwrigh)

    Man, this is frustrating. I tried a different client (WinSCP) with show hidden files enabled and I’m still not seeing it. I’m beginning to think there is no .htaccess file in my blog folder.

    If you are using custom permalinks, then you will have an .htaccess file.

    Thread Starter colwrigh

    (@colwrigh)

    I never used Custom. I have been switching between Default and Post name. Default loads the pages fine, but the URL is sitename.com/?page_id=xx.
    Post name doesn’t load the page at all, but it does have the URL I want to display.

    Thread Starter colwrigh

    (@colwrigh)

    Okay, I think I finally figured out why I can’t find the file. I’m using Yahoo hosting, and apparently they don’t allow people to access the .htaccess files on their servers.

    I am looking into a way to work around this.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Remove /blog slug’ is closed to new replies.