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.

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

eZ debug

Timing: Jan 31 2025 04:27:32
Script start
Timing: Jan 31 2025 04:27:32
Module start 'layout'
Timing: Jan 31 2025 04:27:32
Module start 'content'
Timing: Jan 31 2025 04:27:32
Module end 'content'
Timing: Jan 31 2025 04:27:32
Script end

Main resources:

Total runtime0.0124 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2578151.2266
Module start 'layout' 0.00500.0023 739.484436.6953
Module start 'content' 0.00730.0039 776.179790.2188
Module end 'content' 0.01120.0012 866.398429.9922
Script end 0.0124  896.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.9404140.0001
Check MTime0.00097.6065140.0001
Mysql Total
Database connection0.00097.648910.0009
Mysqli_queries0.002318.698630.0008
Looping result0.00000.080910.0000
Template Total0.00097.110.0009
Template load0.00065.170510.0006
Template processing0.00021.873710.0002
Override
Cache load0.00043.610710.0004
General
dbfile0.00032.318680.0000
String conversion0.00000.059740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs