Forums / Install & configuration / with and without index.php in htaccess

with and without index.php in htaccess

Author Message

Andreas Adelsberger

Tuesday 03 March 2009 3:07:14 am

Hi,

my ezinstallation should work with AND without index.php in the URLS.

I have set ForceVirtaulHost =true in site.ini

I have to define the Rewirte Rules in .htaccess.

DirectoryIndex index.php

RewriteEngine On
RewriteRule ^index.php$ $1 [L]

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]
RewriteCond $1 !^index.php$
RewriteRule .* index.php

So when I type in an url with index.php i get the ez error module not found.

I am desparate on this topic!

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.