Title: Changing Permalink type gives 404 errors
Last modified: August 20, 2016

---

# Changing Permalink type gives 404 errors

 *  Resolved [NetAlien](https://wordpress.org/support/users/netalien/)
 * (@netalien)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/changing-permalink-type-gives-404-errors/)
 * Hi,
    I’ve had some luck with WP; except that every page/post which is on the 
   local server gives 404 errors. No luck at finding the culprit until now…
 * None of the threads I’ve checked have provided the answer. A few minutes ago,
   I deleted *everything* from previous WP attempts to try a fresh start.
 * Installed 3.3.1, and without doing anything beyond updating one default plugin
   included in 3.3.1, hit “Visit Site” and ALL links which are local now seem to
   work. I was very happy to finally see a working site…
 * UNTIL… in Settings->Permalinks, changed to Post Name and the Hello World link
   gives 404. .htaccess contains:
 *     ```
       # 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]
       </IfModule>
   
       # END WordPress
       ```
   
 * OK… Edit this Post, Update…
    Still get 404… revert back to Default Permalinks
   and Hello World is back… .htaccess contains:
 *     ```
       # BEGIN WordPress
   
       # END WordPress
       ```
   
 * So it appears WP itself is broken simply by turning on /%postname%/ permalinks…
   🙁

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

 *  [Pankaj Pandey](https://wordpress.org/support/users/pankajdey/)
 * (@pankajdey)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/changing-permalink-type-gives-404-errors/#post-2491465)
 * your server does not support mod_rewrite. ask your service provider
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/changing-permalink-type-gives-404-errors/#post-2491469)
 * Check with your hosts that mod_rewrite is running on your server.
 *  Thread Starter [NetAlien](https://wordpress.org/support/users/netalien/)
 * (@netalien)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/changing-permalink-type-gives-404-errors/#post-2491648)
 * Did more digging on rewrite in Apache’s httpd.conf and found this:
 * > **Rewriting in Virtual Hosts**
   > **By default, mod_rewrite configuration settings from the main server context
   > are not inherited by virtual hosts.** To make the main server settings apply
   > to virtual hosts, you must place the following directives in **each** <VirtualHost
   > > section:
   >     ```
   >     RewriteEngine On
   >     RewriteOptions Inherit
   >     ```
   > 
 * Also found `AllowOverride None` — changed None to All
 * In case this helps someone, I found this tool which tests one’s server for basic
   rewrite functionality: [http://www.webune.com/forums/viewtopic-p-62.html](http://http://www.webune.com/forums/viewtopic-p-62.html)

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

The topic ‘Changing Permalink type gives 404 errors’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [NetAlien](https://wordpress.org/support/users/netalien/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/changing-permalink-type-gives-404-errors/#post-2491648)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
