WordPress.org

Ready to get started?Download WordPress

Forums

New Blog Post Permalinks Problem: 400 Error (2 posts)

  1. ehong33234
    Member
    Posted 3 years ago #

    Just installed a fresh wordpress and setup the permalinks structure to

    /%category%/%postname%

    However, when I try to write a new blog post, it automatically sets the permalink to uncategorized/%post-name%/ and it won't write in my post title for the post-name no matter what I try. Likewise, when I try to change the category of the post, it has no affect on "uncategorized" in the permalink. So... when I post the blog post and try to click on "view post," I get a 400 Bad Request nginx error.

    I have tried modifying htaccess and it appears that mod_rewrite is on but still nothing! My htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /web/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /web/index.php [L]
    </IfModule>
    
    # END WordPress

    I can't for the life of me figure out why the permalink won't recognize my blog title and category.

    Any help is appreciated, thank you

  2. ehong33234
    Member
    Posted 3 years ago #

    So after searching and taking many troubleshooting steps, I thought about repairing the MySQL database tables. Sure enough, after I did that, the blog posts now have permalinks that match the custom permalink structure I assigned (i.e. blog post title and category).

    I did notice that the permalink when posting a new blog post shows Uncategorized as the default since most likely your settings>writing point to Uncategorized. However, just selecting a new category and saving the post will cause it to save that way in the database, even if it may not change "live" while typing the blog post.

    Hope this helps someone in the future~

Topic Closed

This topic has been closed to new replies.

About this Topic