Skip to content

Commit

Permalink
Merge pull request #3913 from muskie9/patch-5
Browse files Browse the repository at this point in the history
DOCS Update common-problems.md
  • Loading branch information
dhensby committed Feb 17, 2015
2 parents 75299f7 + 54fef89 commit 663f9c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/en/installation/common-problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ On "live" environments, the `?isDev=1` solution is preferred, as it means that y

## mod_rewrite isn't working but it's installed

Due to some changes to `mod_dir` in [Apache 2.4](http://httpd.apache.org/docs/current/mod/mod_dir.html#DirectoryCheckHandler) (precedence of handlers), index.php gets added to the URLs as soon as you navigate to the homepage of your site. Further requests are then handled by index.php rather than `mod_rewrite` (framework/main.php). To fix this place the following before the `mod_rewrite` section of your .htaccess file:
Due to some changes to `mod_dir` in [Apache 2.4](http://httpd.apache.org/docs/current/mod/mod_dir.html#DirectoryCheckHandler) (precedence of handlers), index.php gets added to the URLs as soon as you navigate to the homepage of your site. Further requests are then handled by index.php rather than `mod_rewrite` (framework/main.php). To fix this place the following within the `mod_rewrite` section of your .htaccess file:

```
<IfModule mod_dir.c>
DirectoryIndex disabled
<IfModule mod_rewrite.c>
# Turn off index.php handling requests to the homepage fixes issue in apache >=2.4
<IfModule mod_dir.c>
DirectoryIndex disabled
</IfModule>
# ------ #
</IfModule>
```

Expand Down

0 comments on commit 663f9c9

Please sign in to comment.