• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

.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