Force eZPublish to use index.php?/siteaccess

Author Message

SiXty NiNe

Monday 06 February 2006 9:15:58 am

Hi
I installed eZP on two different webhostings, both with Apache1.3.3/PHP4.3.11 (CGI mode)
First of the two works perfectly with index.php?/siteaccess URLs, but the latter still keeps on trying to use index.php/siteaccess way (that results in 404 error)
Could somebody help me please?
I'm willing to pay the person that can help me out.
Thanks very much
SiXty

Sebastian Picklum

Monday 06 February 2006 9:41:24 am

Hi!

In CGI-Mode, you need mod_rewrite to have index.php/siteaccess URLs.

Regards

Sebastian

sp@php.net

SiXty NiNe

Monday 06 February 2006 9:51:01 am

Hi
Thanks for your reply.
Do you know if that .htaccess is available to download here on ez.no?
There's only one htaccess in eZP installation, and that's not the one I need...
S

Sebastian Picklum

Monday 06 February 2006 3:14:05 pm

Try this .htaccess-File:

RewriteEngine on

RewriteRule !^index\.php.* - [C]
RewriteRule !^webdav\.php.* - [C]

RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf?$ - [C]
RewriteRule (.*) /index.php?/$1&%{QUERY_STRING} [L]

It should work with CGI-Installations (This is a version that does not need index.php in the URL, e.g. "www.somedomain.com/content/view/2". Good luck... :-)

Regards

Sebastian

sp@php.net

SiXty NiNe

Monday 06 February 2006 8:17:09 pm

Great!
Site is running now.
Thanks very much
SiXty

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 16:13:52
Script start
Timing: Jan 18 2025 16:13:52
Module start 'layout'
Timing: Jan 18 2025 16:13:52
Module start 'content'
Timing: Jan 18 2025 16:13:52
Module end 'content'
Timing: Jan 18 2025 16:13:52
Script end

Main resources:

Total runtime0.7179 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 593.7891152.6406
Module start 'layout' 0.00510.0028 746.429739.4766
Module start 'content' 0.00790.7087 785.9063515.5313
Module end 'content' 0.71650.0013 1,301.437512.4375
Script end 0.7179  1,313.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4968160.0002
Check MTime0.00140.1912160.0001
Mysql Total
Database connection0.00090.132010.0009
Mysqli_queries0.663892.4661630.0105
Looping result0.00070.1043610.0000
Template Total0.691196.320.3455
Template load0.00220.300020.0011
Template processing0.688995.964120.3445
Template load and register function0.00020.025510.0002
states
state_id_array0.00060.082910.0006
state_identifier_array0.00060.088320.0003
Override
Cache load0.00200.2728320.0001
Sytem overhead
Fetch class attribute can translate value0.00060.077220.0003
Fetch class attribute name0.00110.152050.0002
XML
Image XML parsing0.00030.041820.0001
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00060.0831100.0001
String conversion0.00000.001140.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs