12

Redirects for subdomains


D
Dominik Bauer

Currently, the user can only create a redirection for the main domain. Customers often want to create a redirection for subdomains and not want to use a .htaccess for it.

My suggestion is to add a dropdown to the existing redirection page where the subdomain can be selected.

A

Activity Newest / Oldest

J

Jason McOrmick

YES! And to add to this comment, I found there's a bug in the Site Redirect feature & litespeed that creates *different* Redirect rules between the domain's openlitespeed.conf and the .htaccess file.

To reproduce, try the following steps:
* Create a (301/whatever) Redirect from / to example.com/news.html
* Observe that the domain's .htaccess file will be correct:
Redirect 301 / example.com/news.html
* Observe that the user's openlitespeed.conf entry will incorrectly be:
RewriteRule ^//?(.*)$ example.com/news.html/$1 [L,R=301]

The difference here, is that the OpenLiteSpeed directive will typically append a slash to the target URL, which is not what we want here.