WordPress.org

Support

Support » How-To and Troubleshooting » Permalinks and Categories Problem

Permalinks and Categories Problem

  • 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    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.

    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?

    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.

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks and Categories Problem’ is closed to new replies.
Skip to toolbar