WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks and Categories Problem (6 posts)

  1. dailymishmash
    Member
    Posted 6 years ago #

    Hi,

    I just switched my permalinks from the default to showing the post name. Now when I click on my categories, you get a 404 error. I installed the plugin for permalinks and a batch category, but neither seems to be resolving this problem.

    Any suggestions?

  2. Roy
    Member
    Posted 6 years ago #

    I'm sure you read http://codex.wordpress.org/Using_Permalinks

    And read the following:

    Using only %postname%
    If you use postname as the only element in your permalinks to create a structure such as example.com/post-title, the rewrite rules may make it impossible to access pages such as your stylesheet (which has a similar format) or the /wp-admin/ folder [is this true in WordPress 2.0+ versions?]. It's best to include some numeric data (e.g. the post ID or date) in the permalink to prevent this from happening. Additionally, WordPress v1.2.x requires the use of a date structure in order for some features, such as the calendar, to function properly. /%year%/%monthnum%/%day%/%postname%/ is always a good start.

    For the rest there could be a couple of reasons for your error. Can you use mod/rewrite and htaccess? Having a look at file permissions could be an idea. Best just start with trying if one of the default pretty permalinks does work (that would answer my two questions) and if that does, follow my advise and make at least id/postname.

  3. dailymishmash
    Member
    Posted 6 years ago #

    When I switched it to the year/month/postname the page completely went nuts. At the top it has all these lines that say:

    Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /hsphere/local/home.....

    It just keeps repeating that. I'm really not sure what I'm doing wrong.

  4. dailymishmash
    Member
    Posted 6 years ago #

    Do I put the same thing in the custom structure as I put in the permalinks migration plugin where it asks for old permalink structure?

  5. Roy
    Member
    Posted 6 years ago #

    I don't know that plugin, but I think you have to look into the subject of mod/rewrite. I never had to myself, fortunately.

  6. dailymishmash
    Member
    Posted 6 years ago #

    I got it back up. I took the advice of Gangleri and switched it to
    /%year%/%postname%/

    Everything seems good except that I'm still getting 404 error when I try to access my categories.

Topic Closed

This topic has been closed to new replies.

About this Topic