• Resolved the_beest

    (@the_beest)


    Hi,

    I hope you can help, this problem is driving me mad. My permalink structure (/blog/%post_id%-%postname%.html) works fine for posts, but doesn’t work for pages.

    I created a page called test. The link created on the homepage is domain.com/test, but this leads to an Apache 404 (not a WordPress 404). The page does exist at domain.com/blog/test.

    I’ve tried this with a couple of other templates, so I don’t think that’s the problem. How can I get WordPress to link to the correct URL?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Obviously your blog/WP is NOT installed where you think it is:
    https://www.beeston.me.uk/blog/test/

    Thread Starter the_beest

    (@the_beest)

    I have set the WordPress URI to be https://www.beeston.me.uk/blog and the Blog URI to be https://www.beeston.me.uk. My index.php file is in the root and includes require('./blog/wp-blog-header.php');. I have an alias of Alias /blog /usr/share/wordpress in my Apache httpd.conf file.

    I’ve read and re-read Giving WordPress Its Own Directory and I can’t see what I’ve done wrong.

    Thread Starter the_beest

    (@the_beest)

    I seem to have fixed it by changing the Blog URI to https://www.beeston.me.uk/blog and removing blog from the permalink structure. But this is not what you’re told to do on ‘Giving WordPress Its Own Directory’.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks work for posts but not for pages’ is closed to new replies.