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.