Forum Moderators: phranque
I don’t like the way these links are set, even though they work perfectly now. I hope I can use the form of /sitemap.html (such as <a href=”/sitemap.html”>), instead of a full absolute address (like <a href=”http//www.mysite.com/sitemap.html”>). It is not because it is short but because this way I don’t have to modify the code when I move the code from testing server to production. I tried the preferred format but it does not work. Apache/tomcat try to fetch https//www.mysite.com/sitemap.html but failed (because this is a wrong URL, it should be http not https).
My question is that is there any way I can configure apache and/or tomcat to let them know I want http page here not https page.
SSI Example:
<a href=”http//<!--echo var='{HTTP_HOST}' -->/sitemap.html”>Site Map</a>
Jim