Stripping sitedesign portion off of URL?

Author Message

Luis Cruz

Friday 24 September 2004 9:34:23 am

Here is my situation; I have set up a multi-lingual site that can serve up English and German content. I have a separate domain for each language, e.g., www.foo.com and www.foo.de. Currently, my rewrite rule is the standard one in the documentation that strips off the index.php portion of the URL.

However, I can access either siteaccess on each domain:

     www.foo.com/en
     www.foo.com/de
     www.foo.de/en
     www.foo.de/de

What I would like to do is to strip off the siteaccess portion of the URL so they look and work like this:

     www.foo.com/some_url  (serves up some_url from en siteaccess)
     www.foo.de/some_url   (serves up some_url from de siteaccess)

What is the best way of doing this? Is there a ez-based setting I can use, or do I have to modify my rewrite rule?

Current Rewrite rule:

RewriteRule !(^/html|^/images|^/img|^/php|^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf|php)$ /index.php

Thanks.

Ekkehard Dörre

Friday 24 September 2004 11:20:56 am

Just look here at Host Match Map:
http://ez.no/ez_publish/documentation/configuration/configuration/site_access

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Luis Cruz

Friday 24 September 2004 11:53:09 am

Success! Thank you.

Luis Cruz

Friday 24 September 2004 12:59:48 pm

Hmm... The host matching works fine, but now I have a new problem. The admin side
allows me to login, but now I cannot do anything in it. All of the URLs contain
/cms in the path (e.g., test-cms/cms/foo). Take the /cms out of the URL, and
you can get to the page.

Any clues on what setting I have to alter or add?

Here is my settings/override/site.ini.append.php:

<?php /* #?ini charset="iso-8859-1"?

[Session]
SessionNameHandler=custom

[SiteSettings]
DefaultAccess=en
SiteList[]
SiteList[]=en
SiteList[]=de

[SiteAccessSettings]
CheckValidity=false
MatchOrder=host
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=test-cms.astaro.com;en
HostMatchMapItems[]=test-cms.astaro.de;de
HostMatchMapItems[]=test-cms;cms

SiteAccessList[]
SiteAccessList[]=en
SiteAccessList[]=de
SiteAccessList[]=cms

[MailSettings]
Transport=sendmail
AdminEmail=
EmailSender=
*/ ?>

** Note that "cms" is the name I gave to the admin siteaccess when I setup ezPublish.
I also set ezPublish up initially using the "MatchOrder=uri" method. Not sure if a
left-over setting is gumming things up.

Ekkehard Dörre

Friday 24 September 2004 2:29:11 pm

HostMatchMapItems[]
HostMatchMapItems[]=test-cms.astaro.com;en
HostMatchMapItems[]=test-cms.astaro.de;de
HostMatchMapItems[]=cms.test-cms.astaro.de;cms

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Luis Cruz

Monday 27 September 2004 7:31:22 am

Doesn't seem to be working still; had my net admin add a DNS entry for admin-cms.astaro.com, but I still have
the same problem. The admin site still places /cms in the path for the internal pages.

Latest site.ini.append.php snippet:

MatchOrder=host
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=test-cms.astaro.com;en
HostMatchMapItems[]=test-cms.astaro.de;de
HostMatchMapItems[]=admin-cms.astaro.com;cms

At wits end trying to get this to work.

Thanks for the help so far; hopefully will be able to get this completely figured out.

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 19 2025 03:37:09
Script start
Timing: Jan 19 2025 03:37:09
Module start 'layout'
Timing: Jan 19 2025 03:37:09
Module start 'content'
Timing: Jan 19 2025 03:37:10
Module end 'content'
Timing: Jan 19 2025 03:37:10
Script end

Main resources:

Total runtime0.8561 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.0063 589.2969152.6406
Module start 'layout' 0.00630.0041 741.937539.4766
Module start 'content' 0.01030.8446 781.4141580.8281
Module end 'content' 0.85490.0011 1,362.242216.1250
Script end 0.8560  1,378.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3990160.0002
Check MTime0.00140.1622160.0001
Mysql Total
Database connection0.00090.099410.0009
Mysqli_queries0.789392.1971660.0120
Looping result0.00070.0876640.0000
Template Total0.812794.920.4064
Template load0.00240.282520.0012
Template processing0.810394.654820.4052
Template load and register function0.00030.032310.0003
states
state_id_array0.00110.127810.0011
state_identifier_array0.00260.301020.0013
Override
Cache load0.00240.2766410.0001
Sytem overhead
Fetch class attribute can translate value0.00050.061420.0003
Fetch class attribute name0.00150.175970.0002
XML
Image XML parsing0.00070.077220.0003
class_abstraction
Instantiating content class attribute0.00000.002080.0000
General
dbfile0.00070.0869160.0000
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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs