• 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

Issue Rewrite rule not work in htaccess

Giuseppe

Basic Pleskian
Hi guys,
i migrate a server from cpanel in Plesk, inc panel no issue, in plesk with same htaccess files website not working.

The object of my rules is: https://www.surflanguage.com/it/index.php -> Surf Language on every page.

The htaccess configuration is:
# RewriteOptions inherit
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# SEO-friendly rewrite of localized pages:
RewriteRule ^(en|de|es|it)/(.*)$ $2?lang=$1 [L,QSA]
RewriteRule ^(.*)$ $1?lang=en [L,QSA]


But rules not working, can someone help me?
 
Try to disable nginx and check how your site goes on.
 
Back
Top