WordPress.org

Forums

[resolved] permalinks and Pages (7 posts)

  1. csleh
    Member
    Posted 8 years ago #

    I've changed my permalink structure to /%category%/%postname%/
    However, the majority of the site uses Pages, not posts. Every time I click on a page link the result is a "500 server error"
    Have updated the .htaccess file with the code generated by WordPress. This is the only code in the .htaccess file.
    Have spent the last two days googling and trying to find related posts here.
    Have studied the permalink pages in documentation, but can't seem to get it. Like this example:

    Permalinks to pages don't work
        If you've tried to navigate to a newly
    created Page and encounter an error, you
    likely need to update your Permalink
    structure. Remember, each time you add a
    new static Page to WordPress, new rules
    must be generated and updated to
    .htaccess (WordPress 1.X) or to the
    internalrewrites array (WordPress 2.X).

    My pages aren't new, they exist. This explanation doesn't say what else to do with the structure, nor does it explain "internal rewrites array." A search on that phrase points only to that page.
    Any help is greatly appreciated!
    *edit to get rid of horizontal scroll bar*

  2. csleh
    Member
    Posted 8 years ago #

    It seems that if I use any other than default for permalinks I get this error. I suspect it's something really simple -- and yet still beyond me ;). If you could point me in the right direction it'd be a big help! Thanks

  3. wicky
    Member
    Posted 8 years ago #

    i'm no wordpress master, but this sounds like the server rather than w/p.

    did you upload the file as ascii? 500 server error messages are usually the result of ascii files being uploaded as binary.

  4. Samuel B
    moderator
    Posted 8 years ago #

    Ask your host if they have mod_rewrite turned on - this is how apache serves the pretty permalinks.

  5. csleh
    Member
    Posted 8 years ago #

    future reference in case anyone else has the same problem:
    add
    RewriteEngine On

    at the very beginning of htaccess

    (still not working for me though; am going to forget pretty urls. not as easy as it should be)

  6. csleh
    Member
    Posted 8 years ago #

    Have not given up. Home page works great, but when I try to link to anything else, I get a 404 error. This is both for posts and Pages, and doesn't matter what method of pretty or almost pretty url I put in.
    Also, no matter which I choose, the generated code for .htaccess is always the same. Should it be?

  7. csleh
    Member
    Posted 8 years ago #

    I found this on another post:

    change the htaccess line to:
    RewriteRule (.*) /blog/index.php/$1 [L]

    adding the (.*) and /$1 worked -- finally -- for both pages and posts.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags