WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks causing 404 pages (15 posts)

  1. mscwd
    Member
    Posted 9 years ago #

    I know this is a topic which constantly appears but I have not found a solution to my problem.

    I set up permalinks for my site, I used /%category%/%postname%/

    As soon as I confirm the permalink structure wordpress informs me the .htaccess file has been updated (I chmod'ed it to 666)

    However whenever I click on an entry a 404 page is displayed.

    Any ideas?

  2. TomSmit
    Member
    Posted 9 years ago #

    Yes, this is the same as my post!

    http://wordpress.org/support/topic/34953

    Anyone got any help?

    Nice to be in the same situation as someone at the same time, however irritating. :)

  3. moshu
    Member
    Posted 9 years ago #

    Try something else instead of "category".

  4. TomSmit
    Member
    Posted 9 years ago #

    No, because I have tried it with /%postname%

    My problem is with pages as opposed to posts, though.

  5. moshu
    Member
    Posted 9 years ago #

    From the Codex

    Note on using only %postname%
    If you use postname as the only element in your permalinks to create a structure such as myblog.com/post-title, the rewrite rules may make it impossible to access pages...

  6. TomSmit
    Member
    Posted 9 years ago #

    Yes but I am dealing with pages not posts? So permalinks don't apply?

    Thanks for the help so far.

  7. moshu
    Member
    Posted 9 years ago #

    You just said above you are using this "%postname"...
    And I gave you a page in the Codex (read the whole stuff!!!) which says: using %postname (alone) can make impossible to access pages... (it might even be Pages? - you never know :)

    The remark abouot using %category was for the originla poster, and again from the Codex:
    Note on using %category%
    %category% does not work correctly with mod_rewrite in Apache versions prior to 2. If you are using Apache 1, do not use %category% in your permalink structure.

  8. From the Codex

    Note on using %category%
    %category% does not work correctly with mod_rewrite in Apache versions prior to 2. If you are using Apache 1, do not use %category% in your permalink structure.

    ::blast, missed it by just a few seconds::

  9. mscwd
    Member
    Posted 9 years ago #

    I removed /%category%/ from my permalink and it works!!!

    However i'm not happy as I really wanted the category to be in the urls.

    Can anyone tell me whats happening and how I might be able to get it to work with this structure: /%category%/%postname%/

    -mscwd

  10. %category% does not work correctly with mod_rewrite in Apache versions prior to 2.

  11. jpettit
    Member
    Posted 9 years ago #

    which means you have to talk to your host...

  12. moshu
    Member
    Posted 9 years ago #

    I understand (?) that people don't read the Codex. But when the answer was posted here in the thread 2 times... why do you keep asking the same question, mscwd?

  13. mscwd
    Member
    Posted 9 years ago #

    "I understand (?) that people don't read the Codex. But when the answer was posted here in the thread 2 times... why do you keep asking the same question, mscwd?"

    - Its late ;)

  14. alainS
    Member
    Posted 7 years ago #

    Hello folks!

    After two weeks of magnificent time in learning & setting up WP localy I've uploaded my blog to server and guess what?

    Permalinks not working. :(

    Using 2.05

    I've tried:

    • checking & updating httpd.config mentioned in codex & restarting Apache
    • different absolute or relative paths in .htaccess
    • overwriting clasess.php & functions-post.php posted in another tread
    • using /index.php/ in permalink structure
    • changing vars.php according to some other post
    • not using %category% or %postname% (this one is really a pain in the ass... without those values is like not using permalinks at all)
    • several .htaccess files prior to 2.0

    Local XAMP:
    Apache 2
    PHP 4.43

    Remote:
    Apache 1.337
    PHP 4.43

    Interesting thing is that categories are working...only posts are not working.

    I really love the features that WP has and now I understand why so many people are having problems with permalinks & some getting back to 1.5. Without this feature I'll have to look for another software...and I really don't want this to happen.

    Can someone give me maybe a magical hint?

  15. alainS
    Member
    Posted 7 years ago #

    I am so happy that I will uppercase:
    PERMALINKS WORKING!!!

    Ok. To make it short:
    Last thing that I've tried was actually undoing my third point(mentioned in previous post):
    overwriting clasess.php & functions-post.php posted in another tread .
    I've overwritten those file again with fresh 2.05 files...updated permalinks and voila'.

    Hope that this will help someone else as I really want that everyone can use this fantastic tool.

Topic Closed

This topic has been closed to new replies.

About this Topic