Forums / Install & configuration / IndexPage doesn't work when using PathPrefix

IndexPage doesn't work when using PathPrefix

Author Message

Maarten Holland

Tuesday 29 August 2006 1:04:27 pm

Hi all,

I've created 3 folders for 3 different sites in ezPublish's root folder. In each folder I've created an 'article' called 'home', since I don't want to use the folder itself as home.

- root
- root \ site 1 (folder)
- root \ site 1 \ home (article)
- root \ site 2 (folder)
- root \ site 2 \ home (article)

In the site.ini.append.php for the 3 siteaccess I've set PathPrefix to site1 (folder), site2 etc so that the foldername is excluded from the URL.

Problem here is that IndexPage doesn't work anymore. I've set that using /content/view/full to the node ID of each 'home' article, but instead, the folder shows up when I access my sites. I've also tried IndexPage=/home/ and IndexPage=/site1/home/ without success.

Anyone has any ideas how I can manage to show the 'home' article instead of the folder? When I remove 'PathPrefix' it's working fine again.

I really hope you can help me. I've read several pages about PathPrefix but can't find the solution.

Thank you very much!

Maarten

eZ debug

Timing: Jan 20 2025 05:51:15
Script start
Timing: Jan 20 2025 05:51:15
Module start 'content'
Timing: Jan 20 2025 05:51:15
Module end 'content'
Timing: Jan 20 2025 05:51:15
Script end

Main resources:

Total runtime0.1319 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.2031180.8047
Module start 'content' 0.00540.0047 770.007889.8672
Module end 'content' 0.01000.1219 859.8750523.3750
Script end 0.1319  1,383.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.6850200.0002
Check MTime0.00161.1879200.0001
Mysql Total
Database connection0.00100.746610.0010
Mysqli_queries0.091569.35421410.0006
Looping result0.00120.88051390.0000
Template Total0.121692.110.1216
Template load0.00070.554010.0007
Template processing0.120891.568610.1208
Override
Cache load0.00050.393410.0005
Sytem overhead
Fetch class attribute can translate value0.00080.603310.0008
XML
Image XML parsing0.00030.195510.0003
General
dbfile0.00261.9831200.0001
String conversion0.00000.004730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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