This is an old revision of the document!
This page controls whether sub-domains are used by the Geographic Navigation Addon.
You will find the following settings and buttons on this page in the admin panel.
Whether to use sub-domains or not for the geographic location URL's.
Not Used
Do not use sub-domains at all. You will not be able to add or edit sub-domains for any of the geographic locations, and it will use cookies to determine what geographic location to display based on what location the user has navigated to.
Configure, but Not Enabled
This option will allow you to edit sub-domain for each geographic location. It will still not be enabled however, so it will still use cookies to determine what geographic location to display based on what location the user has navigated to.
Enabled
This option specifies that use of sub-domain for locations is turned on, and any configured sub-domains will be used for links in Geographic Navigation. Any location that has a sub-domain configured for it, will use that sub-domain to browse listings for that location. If a geographic location does not have a subdomain configured, it will use cookies to determine what geographic location to display based on what location the user has navigated to.
If the Sub Domain Usage setting is set to anything besides Not Used, you will be able to configure what sub-domain is used for each geographic navigation region, on the admin page Addons > Geographic Navigation > Regions. When viewing regions on that page, just click Edit Sub-Domain for any of the built in Countries or States/Provinces. Or click Edit to edit the sub-domain for any of the regions below that.
Clicking on this button will automatically set the sub-domain for every country, every state/province, and every geographic nav region. For countries and states/provinces, it will use the abbreviation. It will also make use of sub-sub domains for deeper regions, for example the sub-domain for United States would be us.example.com, for Alabama, US it would be us.al.example.com.
If multiple locations would have the same generated subdomain, it would only automatically set the subdomain for the first duplicate, not the rest, since for the system to work the sub-domain for each location must be unique.
This button will clear all subdomains for all countries, states/provinces, and regions. This is handy if you want to start over and want a way to keep track of which ones you have already changed and which ones you have not.
You will need to set up a wild-card sub domain in your DNS configuration. How this is accomplished, will be different for every DNS or hosting company out there. The general principle is to set up the sub-domain * to point to the same IP and same "document root" as your main domain does.
While you are waiting for the changes to propagate, you can set the Sub Domain Usage setting to Configure, but Not Enabled, and start configuring the sub-domains for your geographic locations. Just be sure not to enable sub-domains until the wildcard DNS entry has propagated, which you can tell by attempting to visit a sub-domain on your site.
<tip c n>Note: Using Sub-Domains requires that you configure your DNS properly using the instructions on this page. If you are not sure how to do this, you will need to contact the DNS that manages your domain name, in most cases this will be your hosting company. Setting up your DNS is not included in the installation service we provide, and sub-domain problems are beyond the scope of support we offer. We can usually tell you what is wrong and what needs to be changed, but support cannot do the configurations for you.</tip>
When using sub-domains, the sub-domain is removed when switching over to a page that uses SSL mode2), for example during the listing placement process. This is because typically SSL certificates will only work on the main domain name, not sub-domains. After the user returns to normal mode, the user can re-select the geographic navigation location to continue filtering by that location.
If NOT using sub-domains, it uses a cookie to remember what location is currently selected, so switching to SSL mode is not a problem.