Title: Another 404 error
Last modified: August 20, 2016

---

# Another 404 error

 *  [tommy999](https://wordpress.org/support/users/tommy999/)
 * (@tommy999)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/)
 * Hi All
 * I have been looking through the forum for the past 2 hours and tried the following:
 * created new htaccess file and added:
 *     ```
       # BEGIN WordPress
   
       <IfModule mod_rewrite.c>
       RewriteCond %{REQUEST_URI} ^/(.+)/index\.php$
       RewriteRule ^(.+)/index\.php http://site.com/$1/ [R=301,L]
       ErrorDocument 404 /index.php?error=404
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * Deactivated plugins then activated again.
 * and still nothing.
 * Am running of a server, and the guy how does my hosting is not up with wp.
 * Site is yutangspa.co.uk
 * And want to have so that the urls relate to the page names.
 * tom

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [BenjaminRMueller](https://wordpress.org/support/users/benjaminrmueller/)
 * (@benjaminrmueller)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161078)
 * Hello tommy999,
 * Is there a reason why you are not changing the permalinks from the WordPress 
   admin panel? See this page from the WordPress codex for more info on how to change
   them.
 * [http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure](http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure)
 * If you change them from the admin panel it will create the code for you in the
   htaccess file. So you shouldn’t have to worry about adding the code yourself.
 *  Thread Starter [tommy999](https://wordpress.org/support/users/tommy999/)
 * (@tommy999)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161079)
 * hi there
 * I have using custom permalinks like /%category%/%postname%/.
 * But when using custom perma’s I am getting the 404 error, when I use the other
   presets it works fine but I get index.php in the url.
 *  [BenjaminRMueller](https://wordpress.org/support/users/benjaminrmueller/)
 * (@benjaminrmueller)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161081)
 * Try deleting this section from your htaccess file.
 *     ```
       # BEGIN WordPress
   
       <IfModule mod_rewrite.c>
       RewriteCond %{REQUEST_URI} ^/(.+)/index\.php$
       RewriteRule ^(.+)/index\.php http://site.com/$1/ [R=301,L]
       ErrorDocument 404 /index.php?error=404
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * It might be that it is still loading this code. After you have deleted this section
   and saved the htaccess file go back into the permalinks and try setting them 
   to /%category%/%postname%/ again.
 *  Thread Starter [tommy999](https://wordpress.org/support/users/tommy999/)
 * (@tommy999)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161082)
 * just tried that, the url’s have changed to the name but I am now getting 404 
   errors.
 * [http://yutangspa.co.uk/about-us/](http://yutangspa.co.uk/about-us/)
 * also, nothing has been rebuilt into the htaccess file.
 *  [BenjaminRMueller](https://wordpress.org/support/users/benjaminrmueller/)
 * (@benjaminrmueller)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161083)
 * Are you getting “If your .htaccess file were writable, we could do this automatically,
   but it isn’t…” near the bottom of the Permalinks page?
 * It might be that the permissions on the htaccess file do not allow WordPress 
   to change it. You will need to adjust the permissions if that is the case or 
   manually add this to the file:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 *  Thread Starter [tommy999](https://wordpress.org/support/users/tommy999/)
 * (@tommy999)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161085)
 * Ok so, deleted and uploaded a new file.
 * Copied and pasted text from ben’s post. still getting 404 error.
 * File permissions are set to 644.
 *  Thread Starter [tommy999](https://wordpress.org/support/users/tommy999/)
 * (@tommy999)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161086)
 * > Are you getting “If your .htaccess file were writable, we could do this automatically,
   > but it isn’t…” near the bottom of the Permalinks page?
 * Not getting this at bottom of page.
 * I am running 3.1.3 and saying that an update is available. is it worth will doing
   the update?
 *  [BenjaminRMueller](https://wordpress.org/support/users/benjaminrmueller/)
 * (@benjaminrmueller)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161091)
 * No I don’t feel the update will solve the problem unfortunately. I would suggest
   you update the site though since they usually release security patches with the
   updates.
 * The only other thing that I think could be causing this is that the server you
   have your site hosted on is not able to create pretty permalinks at the moment.
 * Have the person running your server check to make sure that they meet the requirements
   found on this page:
 * [http://codex.wordpress.org/Permalinks#mod_rewrite:_.22Pretty_Permalinks.22](http://codex.wordpress.org/Permalinks#mod_rewrite:_.22Pretty_Permalinks.22)
 *  Thread Starter [tommy999](https://wordpress.org/support/users/tommy999/)
 * (@tommy999)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161096)
 * ok I will speak to him and pass this thread onto him.
 * many thanks.
 *  [BenjaminRMueller](https://wordpress.org/support/users/benjaminrmueller/)
 * (@benjaminrmueller)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161108)
 * Sorry I wasn’t able to help you further. I have subscribed to the post so if 
   you need anymore help with the issue or have anymore questions.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Another 404 error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 2 participants
 * Last reply from: [BenjaminRMueller](https://wordpress.org/support/users/benjaminrmueller/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/another-404-error/#post-2161108)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
