"UseCanonicalName Off" equivalent

#1
Hello,
We would like to use the Apache directive "UseCanonicalName Off". Is the equivalent setting available in litespeed? I tried to use "UseCanonicalName Off" in .htaccess and in the "apache style configuration" field, but with no success.
Short background explanation: We use a reverse proxy in front of our sites. This proxy is the HTTPS endpoint and the connection between the proxy and the origin server with litespeed is HTTP. If a client now requests an URL like
Code:
https://www.domain.tld/path
litespeed does an automatic redirect to
Code:
http://www.domain.tld/path/
This is not a problem for normal users, as the reverse proxy redirects again to https, but apparently the Google spider does not like it.
Any ideas?

Thanks
Daren
 

serpent_driver

Well-Known Member
#2
Why don't you use traditional forwarding? Doesn't need a special module and always works.

Code:
  RewriteCond %{SERVER_PORT} !^443$
  RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
 
  RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
 
Top