Forums / Setup & design / Changing Name of Design Folder
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>/Exponential/settings/siteaccess/</i>
and set appropriate settings in files: <i>/Exponential/settings/override/site.ini.append.php</i><i>/Exponential/settings/siteaccess/*/site.ini.append.php</i>
Remember to clear cache after that.
Good luck!
WebStyle Systems | http://www.ws-webstyle.com
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.comhttp://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 behttp://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 behttp://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_siteSiteList[]=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 !"
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...