Forums / Setup & design / No effect when modify the URL settings

No effect when modify the URL settings

Author Message

Quynh Nguyen

Sunday 07 December 2008 10:09:05 pm

Hi,

I'm a newbie to try eZ Publish... and the first thing is following the step by step in some articles...

Installation is really easy, I did not get any troubles here.

But the problem when I try this article: http://ez.no/developer/articles/how_to_configure_an_ez_publish_site/url_modifications to modify the URL

The first try, I insert in /settings/siteaccess/site/site.ini.append.php
The second try: /settings/override/site.ini.append.php
The last try: /settings/site.ini

ForceVirtualHost=true
RemoveSiteAccessIfDefaultAccess=enabled

Then I restart httpd service. But the change does not effect.

My test system:
- Linux CENTOS 5.2: apache 2.2.8, mysql 5.x, php 5.2.6
- eZ Publish 4.0.1
- apache with mod_rewrite...

Is there any change in the new version of eZ Publish?

Please help me! Thanks so much!

Quynh Nguyen

Sunday 07 December 2008 10:47:21 pm

Oh, after modify and clear cache ini I see that mod_rewrite works ok.

But I got the error 403

Forbidden

You don't have permission to access /company/news/lyon_une_metropole_de_taille_europeenne on this server.

André R.

Sunday 07 December 2008 11:29:47 pm

Might help to read the doc as well:
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/virtual_host_setup
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/virtual_host_setup/virtual_host_example

Since you have access to restart apache, its better to setup the rewrite rules in your httpd.conf settings to rule out the possebility that you have disabled .htaccess files (AllowOverride setting).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Quynh Nguyen

Sunday 07 December 2008 11:49:41 pm

More about the setting information:

The last tried is:
- Put RemoveSiteAccessIfDefaultAccess=enabled in /settings/siteaccess/eng to remove language in URL.
- Put ForceVirtualHost=true in /settings/override/site.ini.append.php to remove index.php

But after that I can only browse the home page, and I see that the URL in articles in right format. But when access the detail link, I got the 403 (Forbidden) error.

And then I can not login to administration page and any pages but the home page.

Please help me!

Quynh Nguyen

Monday 08 December 2008 12:17:11 am

@André R.: Thanks so much!

Your link save my time!

André R.

Monday 08 December 2008 12:51:53 am

Nop, btw you should cleanup while you still remember what changes you have done though.
Especially changes directly in the settings folder, as those will be overwritten when you update eZ Publish.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 19 2025 04:39:46
Script start
Timing: Jan 19 2025 04:39:46
Module start 'content'
Timing: Jan 19 2025 04:39:46
Module end 'content'
Timing: Jan 19 2025 04:39:47
Script end

Main resources:

Total runtime0.3712 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 590.8438180.8281
Module start 'content' 0.00700.0052 771.671997.8984
Module end 'content' 0.01210.3590 869.5703527.3281
Script end 0.3711  1,396.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.0750200.0002
Check MTime0.00170.4650200.0001
Mysql Total
Database connection0.00090.241110.0009
Mysqli_queries0.320986.45991410.0023
Looping result0.00160.41981390.0000
Template Total0.358696.610.3586
Template load0.00070.182710.0007
Template processing0.358096.435510.3580
Override
Cache load0.00050.129610.0005
Sytem overhead
Fetch class attribute can translate value0.00090.244910.0009
XML
Image XML parsing0.00030.085210.0003
General
dbfile0.00260.7049200.0001
String conversion0.00000.001930.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.0002 secs