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

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