PDA

View Full Version : Problems installing eZ publish and .htaccess


munti
05-09-2006, 05:12 AM
Hi

I'm trying to add some lines to the .htaccess file on my root folder.

The only line I can place is:
----------------------------------------------------
RewriteEngine On
----------------------------------------------------

Anything else and I get an 500 Internal Server Error:
----------------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@cpanel.ev1servers.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
----------------------------------------------------

This is what I need to place in my file:

----------------------------------------------------
php_value allow_call_time_pass_reference 0

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)s torage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

#<Files "ezpublish-3.6.0">
# order allow,deny
# allow from all
#</Files>

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf( .+)\.pdf$ index.php

DirectoryIndex index.php
----------------------------------------------------

Any help is greatly apreciated!

Thanks,
Børge

munti
05-09-2006, 06:14 AM
I think I found the solution:
http://faq.siteground.com/custom-php.ini-file.html
http://siteground.com/php.ini-hosting.htm