ForceVirtualHost and ez publish 4.1

Author Message

P O

Wednesday 08 April 2009 12:42:26 pm

Hello.

I try to set up fresh ez publish installation to work without index.php in the url. Here is the .htaccess file I used with ezp 4.0.3 and it works:

php_value allow_call_time_pass_reference 0

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) webdav.php [L]

RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) soap.php [L]

RewriteRule ^var/cache/debug.html.* - [L]
RewriteRule ^var/[^/]+/cache/debug.html.* - [L]
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 .* index.php [L]

Now with ezp 4.1 it doesnot work. I cannot access subfolders of the root url without index.php and when ForceVirtualHost is set to true. Moreover still the root url of my site doesn't want to load flash player (I can only see 'no flash player available').

P O

Friday 17 April 2009 3:10:13 am

Ok I just comment thist part of the htaccess file that come with the 4.1:

#<FilesMatch ".">
#order allow,deny
#deny from all
#</FilesMatch>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.