From aceab18ac1f40e14312692c72755b54b572bdd44 Mon Sep 17 00:00:00 2001 From: David Alexander Date: Sun, 19 Jul 2015 14:08:19 +1200 Subject: [PATCH] Issue 66 : commented out three extraneous RewriteConds and tightened a RewriteRule to avoid redirect loops --- .htaccess | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index 1ebf5b8..4f65cc0 100644 --- a/.htaccess +++ b/.htaccess @@ -28,9 +28,9 @@ # Redirect legacy URLs (assumes we're not redirecting other assets, for performance reasons) # Note: Just works on top-level domains, not if the webroot is in a subfolder - RewriteCond %{REQUEST_URI} ^(.*)$ - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$ + # RewriteCond %{REQUEST_URI} ^(.*)$ + # RewriteCond %{REQUEST_FILENAME} !-f + # RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$ #RewriteRule ^execution-pipeline$ http://doc.silverstripe.org/framework/en/reference/ [R=301,L] RewriteCond %{REQUEST_URI} !(3.0|2.4) @@ -54,7 +54,7 @@ RewriteRule ^(.*)/howto/pagination/?$ /$1/developer_guides/templates/how_tos/pagination [R=301,L] RewriteRule ^(.*)/howto/simple-contact-form/?$ /$1/developer_guides/forms/how_tos/simple_contact_form [R=301,L] - RewriteRule ^([a-z]{2})/installation/?$ /$1/getting_started/installation [R=301,L] + RewriteRule ^en/installation/?$ /en/getting_started/installation [R=301,L] RewriteRule ^(.*)/installation/common-problems/?$ /$1/getting_started/installation/common_problems [R=301,L] # RewriteCond %{REQUEST_URI} !en/getting_started/installation/composer