Installer: add RewriteBase to .htaccess to work properly under aliased Apache setups (generated 404s in QA)
authorDan
Fri, 23 Jan 2009 22:03:39 -0500
changeset 819 7ef806a90d44
parent 818 12346be3ec3d
child 820 07e54a67d5d2
Installer: add RewriteBase to .htaccess to work properly under aliased Apache setups (generated 404s in QA)
install/includes/payload.php
--- a/install/includes/payload.php	Fri Jan 23 21:59:03 2009 -0500
+++ b/install/includes/payload.php	Fri Jan 23 22:03:39 2009 -0500
@@ -290,6 +290,9 @@
 # Enable mod_rewrite
 RewriteEngine on
 
+# Required under some aliased setups
+RewriteBase $scriptpath
+
 # Don't rewrite if the user requested a real directory or file
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d