Forums / Install & configuration / Stripping sitedesign portion off of URL?

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.

eZ debug

Timing: Jan 19 2025 00:23:34
Script start
Timing: Jan 19 2025 00:23:34
Module start 'content'
Timing: Jan 19 2025 00:23:34
Module end 'content'
Timing: Jan 19 2025 00:23:35
Script end

Main resources:

Total runtime0.7013 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 591.9688180.8203
Module start 'content' 0.00690.5353 772.7891585.9219
Module end 'content' 0.54220.1591 1,358.7109341.3594
Script end 0.7013  1,700.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.6434210.0002
Check MTime0.00160.2225210.0001
Mysql Total
Database connection0.00070.104910.0007
Mysqli_queries0.607486.60542030.0030
Looping result0.00230.33402010.0000
Template Total0.668695.320.3343
Template load0.00190.266820.0009
Template processing0.666795.065220.3334
Template load and register function0.00020.027710.0002
states
state_id_array0.00110.161910.0011
state_identifier_array0.00090.132920.0005
Override
Cache load0.00160.2255410.0000
Sytem overhead
Fetch class attribute can translate value0.00290.406830.0010
Fetch class attribute name0.00130.186070.0002
XML
Image XML parsing0.00110.150930.0004
class_abstraction
Instantiating content class attribute0.00000.003780.0000
General
dbfile0.00771.1004270.0003
String conversion0.00000.001230.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs