• I got the following 404 error when I tried to customize the permalink to:
    /%category%/%postname%/

    Not Found

    The requested URL /internet-business/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    Apache/1.3.37 Server at sherman.cheong.ws Port 80

    At the moment I’m using this customized permalink and it’s working fine:
    /index.php/%category%/%postname%/

    I’d appreciate it if anyone knows what have I missed.

    Thanks.

    Sherman

Viewing 8 replies - 1 through 8 (of 8 total)
  • I have encountered the same problem with WP 2.2. I am using the same .htaccess, same web host, and same permalink structure I used successfully with earlier versions of WordPress.

    When I use this permalink structure — %postname%.html — I get a 404 error on every page except for index.php. I have to insert “index.php” before the %postname%. That, of course, gives me undesirable URLs such as domain.com/index.php/this-is-a-post.html.

    Ah, I figured it out. Needed to include the WordPress subdirectory in my .htaccess file. I didn’t think that was necessary when the .htaccess file was in the same directory as WordPress.

    Sherman, maybe that’s your problem?

    Hi Virgvv,

    I am having exactly the same problem. All the permalinks keep returning a 404 error.

    Can you pls share with me how to include the WordPress subdirectoring in .htaccess file. I would like to give that a try.

    Thanks and appreciate someone to help out too… I am desperately want to get this work… thanks.

    I have exactly the same problem. Please could somebody tell me how to edit the .htaccess file. Thanks

    Cal

    (@themesbycal)

    open .htaccess in a text editor, like pspad

    should see this

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

    should change to this, replace /subdirectory with your subdirectory name

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

    That works!
    Thank you so much!
    Actually before I started I had nothing like what you said I probably would, just this:

    AuthType Basic
    
    AuthName "www.bwfcuk.com while under construction"
    
    AuthUserFile "/home/bwfcukco/.htpasswds//passwd"
    
    require valid-user

    which I assume is the password protection I have set up while building my website.
    But thank you very much, you were very quick and helpful.

    I need help with this as well. I’m not sure what “subdirectory” I need to place in the htaccess file.

    How can I figure this out please.

    Thanks

    Chris

    Here is what my file looks like:
    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName https://www.nutritionocular.com
    AuthUserFile /home/nutri/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/nutri/public_html/_vti_pvt/service.grp

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Customize Permalink Structure and 404 Error’ is closed to new replies.