Forums / Setup & design / ForceVirtualHost and Exponential 4.1

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

ForceVirtualHost and Exponential 4.1

Author Message

P O

Wednesday 08 April 2009 12:42:26 pm

Hello.

I try to set up fresh Exponential 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>