• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Cannot enable mod_rewrite

LaszloI

New Pleskian
Hello!

Cannot enable mod_rewrite, created everything I had read on Google.

I've created a custom config file in /var/www/vhosts/<domain>/conf/vhost.conf
Reconfigure-vhost was done, apache service restarted.

File vhost.conf contents:

<Directory "/var/www/vhosts/vital-force.eu/httpdocs">

Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

</Directory>

In httpdocs .htaccess file contents:

Options +FollowSymLinks +SymLinksIfOwnerMatch

# php_flag report_errors On

RewriteEngine On

AddDefaultCharset ISO-8859-2
AddCharset ISO-8859-2 .php

# RewriteBase /

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes$
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php

RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

RewriteRule ^(.*)$ index.php [F,L]

In the browser: white page, response content-length is 0, in error log:

[Tue Oct 19 06:52:44 2010] [error] [client 87.229.83.2] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/vital-force.eu/httpdocs/index.pl

Why cannot override the directives or what is the problem? Almost every site I made uses rewrite, so it is a big problem for me.

Thanks!
 
Back
Top