17
This topic has reared it's ugly head again..
There are many combinations of DNS/registrar/URL forwarding etc possible before it gets to Xoops.
Personally I don't like URL forwarding as each system seems to do it differently. I much prefer a CNAME entry in DNS and a properly configured web server.
So, if for example you have XOOPS configured for
http://www.mydomain.com and you have maybe a dynamic IP you can use a dynamic IP service like dyndns you might have a DNS entry like mydynamicIP.otherdomain.com . In your domain's DNS you would configure
http://www.mydomain.com as a CNAME (alias) pointing to mydynamicIP.otherdomain.com .
Your mainfile.php is configured for the desired
http://www.mydomain.com and the users use that URL.
Another issue is from multiple DNS entries that get to the same server. After the first click you get an internal redirect to the mainfile.php configured URL. A direct link to a login page will break a login session if the redirect is different than the initial URL.
Here is what I do for that, note that I have full control of the DNS and Apache configs:
Besides the normal virtual server config (NameVirtualHost) set to match the mainfile.php settings I set-up another NameVirtualHost. This virtual server is set with all the possible variations (ServerName, ServerAlias) that might lead to my server (mydomain.com, direct IP, somethingelse.mydomain.com, etc.). The request is then Redirected to the proper URL and virtual server.
This makes all requests end up at the proper server with the proper URL.