Tuesday 06 February 2007 8:30:10 pm
Hello All, I've recently been asked to move a site from one hosting company to another. I have a number of rewrite rules that worked fine on the old host provider but now causes Internal Server Errors on the new server. The Lines are as follows:
RewriteEngine On
RewriteRule ^/html/.* - [L]
RewriteRule ^/var/storage/.* - [L]
RewriteRule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
RewriteRule ^/design/[^/]+/javascript/.* - [L]
RewriteRule ^/design/[^/]+/images/.* - [L]
RewriteRule ^/design/[^/]+/stylesheets/.* - [L]
RewriteRule ^/share/icons/.* - [L]
RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
RewriteRule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/robots\.txt - [L] Rewriterule .* /index.php The last line (Rewriterule .* /index.php) is what's causing the problem. When I remove it the erros go away but the site doesn't function properly. Any ideas?
Thanks, Jacob PS: I also tried Rewriterule .* index.php (removing the /) and that took away the errors but then stylesheets were missing.
|