• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

.htaccess not work - KB 124

kabayo

New Pleskian
Hi

Plesk 11 - Centos 6

I try to redirect old domain to new domain in same server with .htaccess :

RewriteEngine On
RewriteCond %{HTTP_HOST} ^syt.com.ar$ [OR]
RewriteCond %{HTTP_HOST} ^www.syt.com.ar$
RewriteRule (.*)$ https://www.syt.com/$1 [R=301,L]

Not work.

In KB say try this: http://kb.parallels.com/en/124

But when look in that file show:

cat /etc/httpd/conf.d/zz010_psa_httpd.conf

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
Include '/usr/local/psa/admin/conf/generated/13517861040.80700300_server.include'
Include '/usr/local/psa/admin/conf/generated/13517861040.80700300_horde.include'
Include '/usr/local/psa/admin/conf/generated/13517861040.80700300_atmail.include'
Include '/usr/local/psa/admin/conf/vhosts_bootstrap.conf*'

Now what?
How to use .htaccess to redirect some domain to another in plesk 11 same server.

Any help apreciated...
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.olddomain.com$
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>
If you dont have AccessFileName .htaccess in your httpd.conf file just add it there

echo "AccessFileName .htaccess" >> /etc/httpd/conf/httpd.conf
service httpd configtest && service httpd stop && service httpd start
 
Back
Top