[Resolved] redirect all traffic using REDIRECT not mod-rewrite

Status
Not open for further replies.
#6
Tried adding a context as follows:

-on non-ssl virtual host, click on Context
- click on Add
- select Redirect and click Next
- for URI enter / (meaning everything), Select Yes for external, I used 301 for moved perm, and then the https://www.mydomain.com in Destination URI.
- Save and Graceful Restart

It doesn't seem to redirect, though. I'm thinking I may need to add some sort of wildcard to the URI.

Any advice?
 

mistwang

LiteSpeed Staff
#8
We tested it, working fine with your first configuration.
Please check error log, there could be something wrong with your vhost configuration. or the listener to vhost mapping was not configured correctly.
Turn on debug logging to check how the request was handled.
 
#9
The domain wasn't included in the domain mappings of the listener on the non-ssl entry.

Added that and it worked as expected.

Thank you for your help!
 
Status
Not open for further replies.
Top