From 666075d56cef46d26dc5226fe4ab3d546a3217ef Mon Sep 17 00:00:00 2001 From: Cam Findlay Date: Wed, 18 Feb 2015 11:34:03 +1300 Subject: [PATCH] DOCS Mention the mod_dir changes to Windows WAMP users WAMP Server likely comes with Apache 2.4 so is very relevant to have this instruction available as a troubleshoot. --- .../01_Installation/03_Windows.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/en/00_Getting_Started/01_Installation/03_Windows.md b/docs/en/00_Getting_Started/01_Installation/03_Windows.md index ba685e489..5eaa68884 100644 --- a/docs/en/00_Getting_Started/01_Installation/03_Windows.md +++ b/docs/en/00_Getting_Started/01_Installation/03_Windows.md @@ -63,4 +63,16 @@ alternatives for incoming connection". Make sure that it is de-selected. Right clicked on the installation folder and go to Permissions > Security > Users > Advanced and give the user full control. -3. If you find you are having issues with URL rewriting. Remove the index.php file that is bundled with SilverStripe. As we are using Apache web server's URL rewriting this file is not required (and in fact can result in problems when using apache 2.4+ as in the latest versions of WAMP). The other option is to enable the mod_access_compat module for apache which improves compatibility of newer versions of Apache with SilverStripe. +3. Apache rewrite (mod_rewrite) isn't working and it's installed (prior to SilverStripe 3.1.11) + +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: + +``` + + # Turn off index.php handling requests to the homepage fixes issue in apache >=2.4 + + DirectoryIndex disabled + +# ------ # + +```