Saturday 23 September 2006 2:06:04 am
I am attempting to set up a site on a web host using eZ publish 3.8.4. I have successfully set up eZ publish on my laptop in the past, but I have hit a roadblock on the host. I was following the instructions at http://ez.no/doc/ez_publish/technical_manual/3_8/installation/virtual_host_setup, but my host does not allow me direct access to httpd,conf, so they set up the virtual host, while I had to use a .htaccess for RewriteRules. My .htaccess is as follows:
Options FollowSymLinks
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value allow_call_time_pass_reference 0
DirectoryIndex index.php
RewriteEngine On
Rewriterule ^/var/storage/.* - [L]
Rewriterule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/cache/texttoimage/.* - [L]
RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [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]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^/var/cache/debug\.html.* - [L]
# RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
RewriteRule .* /index.php
When I have my .htaccess thus, I receive an http server error 500, and my error_log reads:
mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
If I comment out the last line, then then site works correctly, except with the URL reading:
http://domain.tld/index.php/directory/content/
instead of:
http://domain.tld/directory/content/
I asked my host if the error was due to how the server was configured, and they said:
Basically, the rewrite rule you are trying to use is impossible because it's an infinite redirect. You need something more concise.
Does anyone have any suggestions as to how I might remedy this problem?
|