Title: Customize Permalink Structure and 404 Error
Last modified: August 18, 2016

---

# Customize Permalink Structure and 404 Error

 *  [shepherdog](https://wordpress.org/support/users/shepherdog/)
 * (@shepherdog)
 * [19 years ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/)
 * 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)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-573514)
 * Did you check out the Codex?
    [http://codex.wordpress.org/Using_Permalinks](http://codex.wordpress.org/Using_Permalinks)
 *  [virgvv](https://wordpress.org/support/users/virgvv/)
 * (@virgvv)
 * [19 years ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-573945)
 * 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.
 *  [virgvv](https://wordpress.org/support/users/virgvv/)
 * (@virgvv)
 * [19 years ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-573951)
 * 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?
 *  [kpyang88](https://wordpress.org/support/users/kpyang88/)
 * (@kpyang88)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-573999)
 * 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.
 *  [triplex2k7](https://wordpress.org/support/users/triplex2k7/)
 * (@triplex2k7)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-574029)
 * I have exactly the same problem. Please could somebody tell me how to edit the.
   htaccess file. Thanks
 *  [Cal](https://wordpress.org/support/users/themesbycal/)
 * (@themesbycal)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-574030)
 * 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
       ```
   
 *  [triplex2k7](https://wordpress.org/support/users/triplex2k7/)
 * (@triplex2k7)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-574031)
 * 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.
 *  [drwatson101](https://wordpress.org/support/users/drwatson101/)
 * (@drwatson101)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-574032)
 * 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 [http://www.nutritionocular.com](http://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.

## Tags

 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 8 replies
 * 7 participants
 * Last reply from: [drwatson101](https://wordpress.org/support/users/drwatson101/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/customize-permalink-structure-and-404-error/#post-574032)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
