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

301 redirect domain without www to www with multiple domains

chris81

New Pleskian
301 redirect domain without www to www with multiple domains


I have a domain package for a complete new project:


onetwothree.com
one-twothree.com
one-two-three.com

onetwothree.net
one-twothree.net
one-two-three.net


I have to use 1 of them as main domain for best SEO results

"one-two-three.com"


now there are some little things to do:

a)

all domains should use 'www.' - but if these domains are trying to be used without 'www.' they should also redirect to 'www.'

b)

all domains should redirect to the main domain via 301




how to be able to do that !?
 
Hi chris81,

Such redirects can be configured using Apache/mod_rewrite redirect rules. You can define own redirects and put them into .htaccess file in the vhost's doc root . As example, redirect from non-WWW to WWW:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^DOMAIN.TLD [NC]
RewriteRule ^(.*)$ http://www.DOMAIN.TLD$1 [L,R=301]
</IfModule>

FYI, upcoming Plesk releases will help you with such kind of WWW/non-WWW redirects.
 
Back
Top