Different directoryindex file

Author Message

Martin Jerie

Wednesday 20 June 2007 3:09:40 am

I use virtual host setup and i need to use different index file so i changed vitrul server configuration to

    DirectoryIndex language.php
 

and added

    RewriteRule ^/language\.php - [L]
 

(language.php redirects to proper siteaccess based on browser language settings)

when i use www.myweb.com/language.php it works good, but when i use only www.myweb.com then language.php isn't used as directoryindex.

What should i do?

Thank you !
Martin

Tobias Struckmeier

Thursday 21 June 2007 6:48:20 am

Hi,

maybe you forgot to change the rewrite rule as well?
From:

Rewriterule .* /index.php

to:

Rewriterule .* /language.php

Cheers,
Tobias

Martin Jerie

Friday 22 June 2007 1:41:53 am

yes, but i need to use language.php only when i enter my site without siteaccess - www.mysite.com.
In all other cases i need to use index.php

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 18 2025 10:32:45
Script start
Timing: Jan 18 2025 10:32:45
Module start 'layout'
Timing: Jan 18 2025 10:32:45
Module start 'content'
Timing: Jan 18 2025 10:32:46
Module end 'content'
Timing: Jan 18 2025 10:32:46
Script end

Main resources:

Total runtime0.7825 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0391152.6250
Module start 'layout' 0.00610.0032 741.664139.4453
Module start 'content' 0.00930.7717 781.1094508.4453
Module end 'content' 0.78100.0014 1,289.55478.1641
Script end 0.7825  1,297.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4069160.0002
Check MTime0.00130.1604160.0001
Mysql Total
Database connection0.00120.150810.0012
Mysqli_queries0.736194.0732570.0129
Looping result0.00050.0619550.0000
Template Total0.753696.320.3768
Template load0.00190.244420.0010
Template processing0.751796.062620.3759
Template load and register function0.00020.027110.0002
states
state_id_array0.00070.085610.0007
state_identifier_array0.00100.130720.0005
Override
Cache load0.00140.1823250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072620.0003
Fetch class attribute name0.00110.144840.0003
XML
Image XML parsing0.00070.089320.0003
class_abstraction
Instantiating content class attribute0.00000.003240.0000
General
dbfile0.00090.1125160.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs