Forward from domain aliases to main domain

/ Published in: Apache
Save to your folder(s)

Forward users from your alias domains to your main domain automatically. Nice to have if your site has got one or more aliases. Notice that all the domain aliases have [NC,OR] at the end of the line, while the last alias just has [NC].

Insert the code in your .htaccess-file in your website's root folder.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.