Support » Fixing WordPress » Custom permalink 404 Error

  • Resolved yeasin33


    I use
    this is giving me 404 error. In my other sites i always use this but now my new site giving this error. Please help

Viewing 15 replies - 1 through 15 (of 20 total)
  • You probably already done step one but verify that your permalink custom field reads /%postname%/

    My second thought if your using certain hosting providers (I.E. GoDaddy) and this is a new site, or one that has never used the .htaccess before it can take up to 1 hour for the changes to reflect on your site.

    I know that sounds strange but here is the source – it states “Changes made to an existing .htaccess file will be seen immediately. When creating new .htaccess files or deleting existing .htaccess files, you might not see changes for up to an hour.”

    I’ve found that issue to sometimes occur but most of the time it doesn’t, its quite strange to me but that may be what’s happening if you run other sites that work with those settings and this is a new one that doesn’t.

    I cant just believe what i am seeing. Whenever i dont use a permalink base, i am getting the error. whatever the post type is.

    It maybe post, page, tag or category. whatever whatever. but if i use a permalink base. everything is ok. I am using bluehost and their built in simplescripts function to install wordpress. how ridiculous!!! i have a site up for 2 days but the problem is still on. No problem with htaccess i guess. Problem is somewhere else.

    Read up on permalink usage here (specifically, the structure tags sections). If you use only /%postname%/ as your custom permalink setting it can cause various issues. One of the problems I’ve seen in the past is WordPress getting confused and producing random 404’s.

    I have checked that out. Points that hitting my mind.

    1. I was using that permalink for a long time. suddenly what happened.

    2. Pages are also generating 404 error. what can be done in this case. There is no way left to edit page permalink.

    3. I think this is a recent created problem maybe for any update.

    Thanks for your reply. Hope you would help me out

    What is your site URL?
    What code do you have in your .htaccess?
    What exactly … very exactly … do you have your Permalinks set and saved to?

    Using only /%postname%/ will only cause problems like this when you have custom post types or a post uses a title similar to a category, page, etc. You can go a long time (indefinitely if you’re very careful) before problems start popping up.

    Try switching to one of the non-custom permalink settings. At the very least it’ll tell you if that’s where the problem lies.

    My permalink custom structure is ===> /%postname%

    htaccess is default as wordpress installed

    Right now i have re installed wordpress 3.2.1 in one of my old site. and the same thing happened for that site also.
    I must use a base in each and every permalink. This is happening even in a just launched site where post is only Hello world! (wordpress default :p)

    I do never create page. and my post permalink are too bigger than the category names. So there is no chance of collision. But unfortunately that is being obvious.

    Is there any chance in hosting. I am using bluehost shared hosting

    I do believe, if you guys try this in your own site, same thing would happen in your fate also 🙁

    You stated “I must use a base in each and every permalink.” This is a .htaccess file issue with mod_rewrite, most likely caused by your host. Double verify your .htaccess file looks exactly like this.

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

    If it doesn’t or is not being generated it may be an issue with your hosts server settings and you can refer to

    You can also try to put a trailing slash onto the end of your permalink so it looks exactly like /%postname%/

    But based upon you saying “I must use a base in each and every permalink.” I can almost say for certain its a mod_rewrite issue in your .htaccess file or your host is doing something funny with there Apache settings.

    Thank you! You are exact to the point.

    My hosting company is constantly changing my htaccess and pulling me down :p
    The htaccess code is be converted to

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

    I have just installed 3.1 in another site. which is working fine with permalink /%postname

    Main Site is still facing the problem.

    To show you the error i am keeping the permalink

    That rule (RewriteRule ^index\.php$ - [L]) was added to the default WordPress .htaccess rules sometime around version 3.0. Your rules look fine.

    I must say problem is in wordpress 3.2.1

    Site installed and problem with


    Working fine With


    Hmm that is very strange that 3.2.1 doesn’t work while 3.1.2 does, its possible there was a bug that they fixed with permalink’s that solved your issue.

    P.S. Big Bagel is correct about that extra line in the .htaccess that was my bad above.

    At Last I found it out. This Simple mistake had taken away my sleep as well as many hours of my life.

    The problem was, i registered two widgets but didn’t use them in the theme. This function was responsible for everything.

    Thanks allah, i found it out. Thank you guys for being so supportive

    Actually not.

    Whatever the trick is, that is working for few minutes only.

    Someone please please please help me out

    Nothing is linking without permalink base.


Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Custom permalink 404 Error’ is closed to new replies.