Share » Forums » Install & configuration » Url vs install directory - how to...

Url vs install directory - how to configure

Url vs install directory - how to configure

Monday 07 April 2003 7:13:37 am - 3 replies

Modified on Monday 07 April 2003 7:14:55 am by George P.

Author Message

Gunnstein Lye

Monday 07 April 2003 7:47:33 am

This is very simple, use something like this in your apache config:

<VirtualHost www.MyDomain.com>
<Directory /var/www/html/ezpublish/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\\.(gif|css|jpg|png|js)$ /var/www/html/ezpublish/index.php

ServerAdmin root@localhost
DocumentRoot /var/www/html/ezpublish/
ServerName www.MyDomain.com
</VirtualHost>

George P.

Monday 07 April 2003 8:55:08 am

Thanks!

But is this possible if I use a Web Hotel? I don't think I have access to apache config files. Maybe using .htaccess in stead?

Scot Wilcoxon

Monday 07 April 2003 12:47:28 pm

It's not index.htm which matters, it is index.php. eZp3 looks at the URL and uses everything before the "index.php" as the current directory. If index.php is visible you should be OK.

(I was having trouble with a similar config, but with index.php hidden. There are problems with that -- I posted a suggestion with a possible fix. Have index.php visible.)

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

36 542 Users on board!

Forums menu