Forums / Developer / HostMatchMapItems - default siteaccess / Comment49184
Nehal Rupani
Tuesday 23 September 2008 11:58:33 pm
Hi Clemens,
I am trying to have nice url [Url Writing] in my Exponential installation. i want to do it .htaccess way means i don't have permission to change httpd.conf file of apache. so i followed gudie line which you provided here.Here,I am puffing snippet which i change for
First,i made changes to settings/override/site.ini.append.php
CheckValidity=false AvailableSiteAccessList[]=ezwebin_site AvailableSiteAccessList[]=eng AvailableSiteAccessList[]=ezwebin_site_admin MatchOrder=host; HostMatchType=map HostMatchMapItems[]=nehal.onezero.no;eng HostMatchMapItems[]=admin.nehal.onezero.no;ezwebin_site_adminRemoveSiteAccessIfDefaultAccess=enabled
Second, I just created one htaccess file and then copied the content of HTACCESS_ROOT to htaccess as they suggested in doc.
RewriteEngine On RewriteRule content/treemenu/?$ index_treemenu.php RewriteRule index_treemenu.php - [L] RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php RewriteRule ^var/storage/.* - [L] RewriteRule ^var/[^/]+/storage/.* - [L] RewriteRule ^var/cache/texttoimage/.* - [L] RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L] RewriteRule ^design/.* - [L] #RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L] #RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L] RewriteRule ^share/icons/.* - [L] RewriteRule ^sitemaps/.* - [L] RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts|javascript?)/.* - [L] RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L] RewriteCond $1 !^index.php$ RewriteRule (.*) /index.php cd /public_html/subdomains/nehal cp .htaccess_root htaccess_rootDirectoryIndex index.php