Sunday 22 February 2004 1:37:36 pm
Hello Like many people, I've struggled with getting the ezroot operator to work using the Rewrite rule in .htaccess to create nice URLs. I have followed all the suggestions I have found in the documentation and the forums on how to use the Rewrite rules in .htaccess, to no avail. I have changed the links in the templates as described in the "Creating nice URLs" documentation page, and inserted the recommended Rewrite rule into .htaccess.
RewriteEngine On RewriteRule ^([^.]+)?$ /index.php/$1 eZpublish now builds the correct URL in the link, but I get a 403 error: "Forbidden You don't have permission to access /news on this server." I changed the permissions for index.php and the eZpublish directory to apache, but still no luck. I then followed another tip in a post and put the Rewrite rule in the Vhosts.conf file on my development machine. This worked properly. However, I am on a shared server in a virtual host environment and would rather use the .htaccess Rewrite rule than to have to rely on the hosting provider modifing the Vhosts.conf files everytime I host a new domain in eZpublish. (It is a multi-site installation.) I am running eZpublish-3.3-2 on Mandrake9.2 on my development machine, with Apache2.0.47 and php-4.3.3. Does anyone have any suggestions why the Rewrite rule works in Vhosts.conf and not in .htaccess, and any tips for making it work in .htaccess? Thanks Iain
|