• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

mod_rewrite

R

rackserverz

Guest
Hi

I have just installed a new Debian Plesk 7.5 installation and have a problem with mod_rewrite. I have the following .htaccess file:

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

That results in the following error:

Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration

I previously had a RedHat Plesk 7.5 installation which worked fine. What is the problem?

Thank you
 
Newermind. I figured out to copy /etc/apache2/mods-avalible/rewrite.load to /etc/apache2/mods-enabled/rewrite.load and mods_rewrite is working now...
 
Back
Top