<p>Those are the 2 thing you need to ensure are correct.</p>

<p>If .htaccess files are being ignored, you need to check to see that AllowOverride is set correctly. See <a href="http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride" rel="nofollow">http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride</a> for details on setting "AllowOverride All". You need to also ensure that it is set in the correct scope - ie, in the right block in your configuration. Be sure you're NOT editing the one in the block, for example.</p>

<p>Third, if you want to ensure that a .htaccess file is in fact being read, put garbage in it. An invalid line, such as "INVALID LINE HERE", in your .htaccess file, will result in a 500 Server Error when you point your browser at the directory containing that file. If it doesn't, then you don't have AllowOverride configured correctly.</p>

CC BY-SA 3.0
2015-01-26T02:52:26.260Z
What if you don't have access to the apache server though?
firedrawndagger
CC BY-SA 3.0
2015-03-26T04:33:02.733Z
usually you will only find that will cheaper shared hosting.
Luke Holder
CC BY-SA 3.0
2014-10-28T06:28:50.433Z
2014-10-28T06:28:50.433Z
Luke Holder
<p>Content is accessible via example.com/index.php?p=page-name but not via example.com/index.php/page-name or example.com/page-name.</p>

<p>The .htaccess and 'omitScriptNameInUrls' => true are both in place but still no luck.</p>

<p>Any ideas?</p>

<url><htaccess>
URL rewrites not working return Apache 404's
# URL rewrites not working return Apache 404's

(Asked by: username_0 on 2014-10-28)

Content is accessible via example.com/index.php?p=page-name but not via example.com/index.php/page-name or example.com/page-name.

The .htaccess and 'omitScriptNameInUrls' => true are both in place but still no luck.

Any ideas?

**Tags:** url, htaccess

---

## 1 answers

### Answer by username_1 on 2014-10-28. Score: 3

Those are the 2 thing you need to ensure are correct.

If .htaccess files are being ignored, you need to check to see that AllowOverride is set correctly. See <http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride> for details on setting "AllowOverride All". You need to also ensure that it is set in the correct scope - ie, in the right block in your configuration. Be sure you're NOT editing the one in the block, for example.

Third, if you want to ensure that a .htaccess file is in fact being read, put garbage in it. An invalid line, such as "INVALID LINE HERE", in your .htaccess file, will result in a 500 Server Error when you point your browser at the directory containing that file. If it doesn't, then you don't have AllowOverride configured correctly.

> **Comments:**
> **username_2**: What if you don't have access to the apache server though?  
> **username_1**: usually you will only find that will cheaper shared hosting.  

---

