Changing Name of Design Folder

Author Message

GG 66

Tuesday 19 September 2006 9:26:40 am

I'm relatively new to this so I'd appreciate any advice or pointers to documentation.

When installing ez, I set it up with the design folder corporate_site

Now that the site is complete and ready to launch I realise I don't know how to remove this from the address bar.

Currently the domain looks like mydomain/index.php/corporate_site

I would ideally like to remove index.php but can live with this.

But I need to change corporate_site to something else.

How do I do this?

Thanks in advance

Juliusz Calyniuk

Tuesday 19 September 2006 10:09:32 am

Hi GG666 66,

What a funny nick ;)

This is not about design folder but siteaccess.
You can just change siteaccess settings in configuration of your websites.

Look at subfolders of /settings.

You can change names of subfolders in:
<i>/ezpublish/settings/siteaccess/</i>

and set appropriate settings in files:
<i>/ezpublish/settings/override/site.ini.append.php</i>
<i>/ezpublish/settings/siteaccess/*/site.ini.append.php</i>

Remember to clear cache after that.

Good luck!

WebStyle Systems | http://www.ws-webstyle.com

GG 66

Wednesday 20 September 2006 1:55:24 am

Hi Juliusz

Thanks for your prompt response.

I've tried what you suggested but it has broken connection with database.I changed back again. Its probably possible but there are probably more changes involved.

Stylesheet links were also missing but this may be just a matter or changing urls in pagelayout.tpl.

I cant see where corporate_site is tied to database.

Can you advise?

Thanks

Norman Leutner

Wednesday 20 September 2006 2:31:24 am

Hi,

the finest soution is take make a host based setup with different domain names like:

http://admin.yoursite.com
http://www.yoursite.com

which point the different siteaccesses:

/settings/override/site.ini.append.php

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=corporate_site
AvailableSiteAccessList[]=corporate_site_admin

MatchOrder=host
HostMatchMapItems[]=yoursite.com;corporate_site
HostMatchMapItems[]=www.yoursite.com;corporate_site
HostMatchMapItems[]=admin.yoursite.com;corporate_site_admin
ForceVirtualHost=true
HostMatchType=map

and a apache rewrtie rule like this one to get ret of the index.php:

      <IfModule mod_rewrite.c>
          RewriteEngine On
          Rewriterule ^/var/storage/.* - [L]
          Rewriterule ^/var/[^/]+/storage/.* - [L]
          RewriteRule ^/var/cache/texttoimage/.* - [L]
          RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
          Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
          Rewriterule ^/share/icons/.* - [L]
          Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
          Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
          RewriteRule .* /index.php
      </IfModule>

So there's no need to change the siteaccess name at this point...

Hope this helps..

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

fintan sheehan

Thursday 21 September 2006 9:16:16 am

Thanks Norman,
I tried your sugestion. It works up to a point. Problem is both site and admin site just use whatever DefaultAccess is set to.

If DefaultAccess=corporate_site below then
http://mysite.degrees.com and http://mysite.degrees.com both bring up what used to be
http://mysite.degrees.com/index.php/corporate_site

If DefaultAccess changed to corporate_site_admin below then
http://mysite.degrees.com and http://mysite.degrees.com both bring up what used to be
http://mysite.degrees.com/index.php/corporate_site_admin

Do i need to make any changes to settings/siteaccess/corporate_site/site.ini.append.php
and
Do i need to make any changes to settings/siteaccess/corporate_site_admin/site.ini.append.php
?

Below are changed I made to settings/override/site.ini.append.php

Thanks
Fintan
[SiteSettings]
DefaultAccess=corporate_site
SiteList[]=corporate_site
SiteList[]=corporate_site_admin

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=corporate_site
AvailableSiteAccessList[]=corporate_site_admin
MatchOrder=host
HostMatchMapItems[]=mysite.degrees.com;corporate_site
HostMatchMapItems[]=admin.mysite.degrees.com;corporate_site_admin
ForceVirtualHost=true
HostMatchType=map

Xavier Langlois

Thursday 21 September 2006 1:25:25 pm

.

--
There were these two cows, chatting over the fence between their fields.
The first cow said, "I tell you, this mad-cow-disease is really pretty scary. Don't you think ?"
The other cow replies, "Hell, I ain't worried, I'm a duck !"

Norman Leutner

Friday 22 September 2006 12:43:59 am

Your settings seemd to be correct if the siteaccess names and DNS entrys are valid it sould work fine. Don't forget to clear the cache...

Do i need to make any changes to settings/siteaccess/corporate_site/site.ini.append.php
and
Do i need to make any changes to settings/siteaccess/corporate_site_admin/site.ini.append.php
?

No, ensure that there are no other overrides those settings...

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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 18 2025 16:20:20
Script start
Timing: Jan 18 2025 16:20:20
Module start 'layout'
Timing: Jan 18 2025 16:20:20
Module start 'content'
Timing: Jan 18 2025 16:20:21
Module end 'content'
Timing: Jan 18 2025 16:20:21
Script end

Main resources:

Total runtime0.9797 sec
Peak memory usage4,096.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.0469152.6250
Module start 'layout' 0.00800.0040 741.671939.4609
Module start 'content' 0.01200.9662 781.1328723.2344
Module end 'content' 0.97820.0014 1,504.367220.1641
Script end 0.9796  1,524.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4533160.0003
Check MTime0.00160.1669160.0001
Mysql Total
Database connection0.00140.147610.0014
Mysqli_queries0.896691.5188750.0120
Looping result0.00080.0767730.0000
Template Total0.938395.820.4691
Template load0.00210.218320.0011
Template processing0.936195.552920.4681
Template load and register function0.00010.011510.0001
states
state_id_array0.00120.127410.0012
state_identifier_array0.00200.205320.0010
Override
Cache load0.00200.2027830.0000
Sytem overhead
Fetch class attribute can translate value0.00090.090250.0002
Fetch class attribute name0.00110.1111100.0001
XML
Image XML parsing0.00180.182650.0004
class_abstraction
Instantiating content class attribute0.00000.0023110.0000
General
dbfile0.00120.1196290.0000
String conversion0.00000.000940.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 45
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs