Remove WWW from request
Information
Summary: |
If a user types in www.example.com, would like to have the www removed |
Environment: |
Product: LoadMaster Version: Any Platform: Any Application: Any |
Question/Problem Description: |
Remove www from request |
Steps to Reproduce: | |
Error Message: | |
Defect Number: | |
Enhancement Number: | |
Cause: | |
Resolution: |
There are several options for how to do this:
Rule type = Replace Header ***Once the rule is created, it will be applied within the Virtual Service configuration under the HTTP Header Modifications as a request rule.
https://(LoadMasterIPAddress)/access/addrule?name=(RuleName)&type=3&matchtype=regex&header=Host&pattern=%2F%5Ewww%5C.example%5C.com%24%2F&replacement=example.com
$LoadMaster_Address=
Create two SubVSs within the Virtual Servuce. On one, a Rule to match host header for www.example.com would be use and this SubVS would perform a 301 permanent redirect to https://example.com%s. The second SubVS will have a Rule to match example.com and send traffic to the Real Servers. This will show the change of removing the www in the browser to the users.
|
Workaround: | |
Notes: |