Forum Moderators: phranque
The solution that I plan to implement is to redirect any user who accesses the site using an IP address (e.g. xx.#*$!.#*$!.#*$!) to www.xyz.com
I am new to Apache re-write rules and need guidance on how this can be done.
The HOST attribute in the header will contain an IP address or the domain name that has been used to access the site.
If it is an IP address, we need to redirect the user to www.xyz.com
I am using the following rule after looking at some similar posts in the forum