Forum Moderators: phranque
One of my files uses
<!--#include virtual="mmm.html" -->
to include a file containing the following code:
<p>1. Copy this link: <a href="http://www.domain.com<!--#echo var="DOCUMENT_URI" -->">Check out this page: <!--#echo var="DOCUMENT_NAME" --></a></p>
Visitors are encouraged to paste the above included code into their e-mail clients and send to friends.
When I copy it into my e-mail client and send to another e-mail address and open it up and hover over the link, the link correctly shows as
"http://www.domain.com/dir/xyz.html"
but when I click on the link, it opens my browser to:
"http://www.domain.com:80/dir/xyz.html"
The ":80" concerns me.
If I then put my curser in the address box, and click return, the address box url changes to
"http://www.domain.com/dir/xyz.html"
How to I prevent it from adding the :80?
As I recall it did not add the :80 when the code was on the original page rather than the included page.
Thanks for the suggestion.
For some reason my system still adds the :80 in the browser url bar when I click the link in the e-mail. Even though the link in the e-mail appears not to contain the :80.
I just realized that the same thing happens when I cut and paste
[domain.com...] from the browser url bar into an e-mail and send it. When I open it, even though the url in the e-mail shows without the :80, when I click on the link the :80 appears in the browser url bar.
It looks like I was also mistaken when I wrote that it did not happen when the code was in the original url rather than in a file called by ssi.
I guess if having the :80 show up doesn't cause any security concerns, I will just leave it.
Do you think that if I later move to a dedicated rather than shared server, will it may break the link?
First step: Ask your host.
Jim