New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

domain aliases

Started by luca, October 30, 2024, 03:33:26 PM

Previous topic - Next topic

luca

Friends,

Is there a way to set domain aliases in CWP?

Thanks.

overseer


luca

Hi, friend

Thanks for reply.

An alias, such as for domain.com, also load it for domain.net, so domain.net is alias of domain.com.

Thanks!

overseer

Domains > Add Domain
Assign the new domain to an existing user, and set the directory path to be the same web root (/public_html). Then the domain will also be available for e-mail/forwarders.

luca

Great idea! Thanks. If it's not in documentation, I'd suggest CWP team add it.

luca

Its not 100%, though. It loads the domain alias URL at first, then, when you click on a site's link it goes to the site redirected to.

Its not the same thing as a redir.

Can we add a FR for a redir/domain alias as a feature?

Thanks.

luca


6Sense

#7
Ya I found the aliases did not behave as I wanted them to. Currently I set them up as seperate user in CWP & then create a rule in its htaccess to do it.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?aliasdomain\.suffix$ [NC]
RewriteRule ^ https://parentdomain.suffix%{REQUEST_URI} [R=301,L,QSD,CO=none]
6Sense - Web Design, Development & Web Hosting