• I have the content of my blog in it’s own directory (www.beeston.me.uk/blog), but index.php is in the root. However, when I create a page, the link in the index header links only to /page, not /blog/page. If I browse to /blog/page, then the page is there.

    I’ve gone through the htaccess file with a fine toothcomb, it all looks okay to me. Any ideas how I can fix the link?

Viewing 7 replies - 1 through 7 (of 7 total)
  • When you moved your index to the root – did you follow this guide?
    Giving_WordPress_Its_Own_Directory

    However, when I create a page, the link in the index header
    I am not sure I understand this…

    Thread Starter the_beest

    (@the_beest)

    Yes, I did follow the guide, and the rest of the site works just fine.

    If you have a quick look at my site, then the link to the one static page I have is https://www.beeston.me.uk/about , whereas it should be https://www.beeston.me.uk/blog/about . The page exists at /blog/about, so I just need to get it to link correctly. Capiche?

    Yes, I did follow the guide, and the rest of the site works just fine.

    No, it doesn’t. All your internal links (post title, categories etc.) do have “blog” included in the address. Why would this one work differently?

    Thread Starter the_beest

    (@the_beest)

    Why would this one work differently?

    Well, that’s the question I’m asking. I’ve spent 3 or 4 hours going through my set-up and the pages on this site, and I’m stumped. Any suggestions would be gratefully received.

    It won’t work differently.
    If the permalink structure is set up to have “blog” in it… Pages will also need that bit.

    Thread Starter the_beest

    (@the_beest)

    I think we have crossed wires here. I understand that pages will be in the directory /blog. That’s fine, I want it that way. I’ve created a page called about, which exists at /blog/about. But the link to that page from index.php is just /about, not /blog/about. Hence it’s a broken link, and I don’t know how to fix it.

    Thread Starter the_beest

    (@the_beest)

    I’ve fixed it with a 301 redirect, but the link is still wrong. If anyone has any ideas I’d like to hear them. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page links not working when WordPress in subdirectory’ is closed to new replies.