Disable index.php redirection for a folder

Author Message

Damien MARTIN

Thursday 25 March 2010 3:01:09 am

Hi there,

I need to authorize the access to a folder that is set inside of ezpublish.
But as you know, eZ redirect all requests to index.php .

So, for the "foo" folder at the root of eZ publish, I want to make it accessible with : www.mysite.tld/foo

How should I do ?

I suppose I have to modify .htaccess but I don't know how.

Could someone help me ?

Nicolas Pastorino

Thursday 25 March 2010 8:38:53 am

Hello Damien,

You will need to play with your web server's configuration. Here are hints on how to do it with Apache :

RewriteEngine On
RewriteRule ^/foo/.* - [L]

The lines above must be embedded in a VirtualHost definition if i remember correctly.

Let us know if that works correctly,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Damien MARTIN

Friday 26 March 2010 1:01:24 am

I tryed, and I approve !

Thank you Nicolas :)

Nicolas Pastorino

Friday 26 March 2010 2:02:32 am

Anytime :)

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

anny sharing

Tuesday 11 January 2011 1:13:31 am

Thank you for your post! Nicolas Pastorino

I google search and find some php redirection scripts listed on the page!

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

Main resources:

Total runtime1.1249 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.1641152.6563
Module start 'layout' 0.00690.0042 740.820339.4922
Module start 'content' 0.01121.1121 780.3125601.1797
Module end 'content' 1.12330.0016 1,381.492212.1250
Script end 1.1249  1,393.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3037160.0002
Check MTime0.00150.1305160.0001
Mysql Total
Database connection0.00120.105310.0012
Mysqli_queries1.061094.3161660.0161
Looping result0.00080.0708640.0000
Template Total1.090797.020.5453
Template load0.00190.171420.0010
Template processing1.088796.780320.5444
Template load and register function0.00010.009610.0001
states
state_id_array0.00130.112310.0013
state_identifier_array0.00220.197520.0011
Override
Cache load0.00170.1492300.0001
Sytem overhead
Fetch class attribute can translate value0.00100.088930.0003
Fetch class attribute name0.00150.132770.0002
XML
Image XML parsing0.00120.110530.0004
class_abstraction
Instantiating content class attribute0.00000.001890.0000
General
dbfile0.00130.1175220.0001
String conversion0.00000.001040.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs