Why is mod_rewrite not working on my site?
On Cloud Sites, due to our unique hosting environment, we require a slight addition to the code used for mod_rewrite. You will also need to make sure that the site is using either PHP4 or PHP5 as the default technology.
In the .htaccess file containing your rewrite rules, after RewriteEngine on, add RewriteBase /. Example:
RewriteEngine on RewriteBase /
Depending on the application, you may need to further specifiy the RewriteBase / to include the subdirectory the application is installed in. For example:
You can find more information on mod_rewrite at Apache's website.
© 2015 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License
See license specifics and DISCLAIMER