• 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.

Question change the default 301 redirect

fabieng

Basic Pleskian
Hello
I set up some domain alias with 301 redirect. I can see in vhost that all the path after old domain is kept for new domain.

I would like to change that as both domains does not have same path structure, so need to redirect everything to homepage (except one single page, but let's play first to redirect all to new domain homepage)

for instance :
olddomaine.com/titi has to redirect to newdomain.com and not newdomain.com/titi

I changed
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/devis
RewriteCond %{HTTP_HOST} ^oldurl\.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.oldurl\.com [NC]
RewriteRule ^(.*) https://newurl.com [L,R=301]

>> but any /titi o /toto is kept.

is there any other redirect somwhere else ?!

thx for your help !
 
because I tried to use first the plesk functions, but maybe you're right, maybe plesk is not able to manage properly that.
 
Back
Top