This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Install & configuration » URL without siteaccess name

URL without siteaccess name

URL without siteaccess name

Saturday 06 November 2010 4:45:44 pm - 5 replies


My eZpublish is 4.2 and my site is managed by Apache without virtual host.

I would like to hide my siteaccess name in the URL. So I put in the site.ini,

RemoveSiteAccessIfDefaultAccess=enabled in the section [SiteAccessSettings]

But my URL looks like :

The siteaccess name is hiden but there is // !

How can I do to have only one / ?

2scd question : Use rewrite rules in httpd.conf or .htaccess file, is there the only way to get out index.php from the URL? IF no what is the other way?

Thank a lot for your answer


Saturday 06 November 2010 5:25:45 pm

To get rid of index.php, you need to add "ForceVirtualHost=enabled" in [SiteSettings] group in settings/override/site.ini.append.php and modify your .htaccess per following instructions.

This may also solve your problem with double slash.

Saturday 06 November 2010 5:29:22 pm

Whoops, sorry, didn't notice that you don't have access to virtual host in apache. Not sure if this will work then.

I've had varying results with trying to remove index.php when not having virtual host setup and ultimately I would just get access to virtual host and be done with it.

Saturday 06 November 2010 6:38:39 pm

Change your SiteURL settings in your default siteaccess site.ini.append.php, the SiteURL may not end with '/' neither the siteaccess name, just 'index.php', and then clear the cache. There are already topics about removing index.php from url, I use .htaccess:

Options -Indexes
DirectoryIndex index.php
RewriteEngine On
#Clustered setup switch
#RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.*  /index_image-common.php [L]
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) webdav.php [L]
RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) soap.php [L]
Rewriterule ^/var/static/.* - [L]
RewriteRule ^(.*)favicon\.ico - [L]
RewriteRule ^robots\.txt - [L]
RewriteRule ^sitemap\.xml - [L]
RewriteRule ^var/cache/debug.html.* - [L]
RewriteRule ^var/[^/]+/cache/debug.html.* - [L]
Rewriterule ^var/storage/.* - [L]
Rewriterule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
RewriteRule ^var/([^/]+/)?cache/public/.* - [L]
Rewriterule ^design/[^/]+/(stylesheets|images|javascript|flash)/.* - [L]
Rewriterule ^share/icons/.* - [L]
Rewriterule ^extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^packages/styles/.+/thumbnail/.* - [L]
# Uncomment the following lines when using popup style debug.
# RewriteRule ^var/cache/debug\.html.* - [L]
# RewriteRule ^var/[^/]+/cache/debug\.html.* - [L] 
RewriteRule .* index.php [L]

Just change all site.ini.append.php files and remove index.php from SiteURL and set the following settings:


Clear the cache.

It's working with 4.4, here's a sample:

Modified on Saturday 06 November 2010 6:43:26 pm by Thiago Campos Viana

Monday 08 November 2010 6:02:06 pm

Thanks Thiago, works very nicely on linux hosting.

Still struggling to get it to work on OS X.

Tuesday 09 November 2010 6:08:18 pm


Thank you very much for your answer and sorry for my later reaction but my boss give me an other task most urgent than my web site!!!

I'll try your suggestion at the begin of the next week.




You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from