Title: 404 mod_rewrite error
Last modified: August 22, 2016

---

# 404 mod_rewrite error

 *  Resolved [elarpa](https://wordpress.org/support/users/elarpa/)
 * (@elarpa)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/)
 * I found the perfect match to my problem on [http://codex.wordpress.org/Debugging_a_WordPress_Network](http://codex.wordpress.org/Debugging_a_WordPress_Network):
   “
   Mod_rewrite not working Main site works but 404 errors show up when trying to
   access added child subdomain sites”
 * But the stated solution is chineese to me – I have no idea what to do with this
   answer:
 * “Ubuntu 10.04 LAMP apache2 install needs these steps:
    sudo a2enmod rewrite sudo
   nano /etc/apache2/sites-avail/default
 * and change in two places the ‘AllowOveride None’ to ‘AllowOveride all’
    /etc/
   init.d/apache2 restart
 * to restart apache2. Note that on more modern versions of Ubuntu the following
   syntax is preferred (for restarting services such as Apache – also note that 
   in either case you may need to use prepend sudo):
    service apache2 restart”
 * Can someone translate this into dummy-language for me, please?
    As far as I know
   I have no such install and cannot find anywhere it says ‘AllowOveride None’. 
   Where is this? Thank you very much for your help.

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/#post-5607277)
 * > As far as I know I have no such install and cannot find anywhere it says ‘AllowOveride
   > None’. Where is this?
 * It’s in your httpd.conf file.
 * That;s a server level setting. I’d say ask your webhost but…
 * > “Mod_rewrite not working
   >  Main site works but 404 errors show up when trying
   > to access added child subdomain sites”
 * What does the 404 look like?
 *  Thread Starter [elarpa](https://wordpress.org/support/users/elarpa/)
 * (@elarpa)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/#post-5607300)
 * I looked through the entire WP installation and cannot find any httpd.conf file
   anywhere… Where is this?
 * The 404 error is a very big “404” written all over the screen.
 * Sometimes it redirects to my main site instead of displaying the 404 error. But
   is not supposed to do that either…
 *  Thread Starter [elarpa](https://wordpress.org/support/users/elarpa/)
 * (@elarpa)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/#post-5607301)
 * And where am I supposed to put the sudo lines…???
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/#post-5607307)
 * STOP!
 * If you do not know what ‘sudo’ is **_DO NOT ATTEMPT TO FIX YOUR HTTPD.CONF FILE
   ON YOUR OWN_**
 * > Sometimes it redirects to my main site instead of displaying the 404 error.
   > But is not supposed to do that either…
 * Acutally yeah it is in certain situations, but that’s neither here nor there.
 * _**Ask your webhost to check on your httpd.conf for you.**_. Ask them this, specifically:“
   I’m having a problem with complex .htaccess rules not being read properly on 
   my site. Can you check if mod_rewrite is active and, if so, is AllowOverride 
   set to either “All” or “Options All” in my httpd.conf? Thanks!”
 * DO NOT attempt to mess with this on your own if you don’t know what sudo is. 
   That will end badly.
 *  Thread Starter [elarpa](https://wordpress.org/support/users/elarpa/)
 * (@elarpa)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/#post-5607319)
 * Thank you very much. I will ask my webhost to see if they can fix it.

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

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 5 replies
 * 2 participants
 * Last reply from: [elarpa](https://wordpress.org/support/users/elarpa/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/404-mod_rewrite-error/#post-5607319)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
