• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

.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