473,687 Members | 3,451 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Links to https fails 404 with preceding forward slash

In reviewing my web site statistics, I see that I get 404 errors (often enough to make me ask about it) when users try to click on a link to a secure external site (i.e. an https:// link).

I've tested these links multiple times, and they always work fine for me. Other links do not seem to have trouble. It seems to be related to "https://" for some reason. I get this for another site too.

The statistics page shows the 404 failed link with an additional forward-slash at at the start of the url, such as:

"/https://www.SomeRandomW ebSite.com"

Does anyone know why this happens and how I can prevent it? Is this a browser-specific issue that I have no control over?

Thanks!

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Jun 14 '06 #1
2 3401
there is no good answer here.
Apparently you have a link on your page that has forward slash first.
"/https://www.SomeRandomW ebSite.com"

You need to fix it and that is it.

Just an idea. Can it be that you link has an extra space. like
<a href=" https://.....">My Link</a>

Then browser probably sees first character as a space and treats it as
relative link to the current page. Thus adding first slash?
George.
"Greg Collins [Microsoft MVP]" <gcollins_AT_ms n_DOT_com> wrote in message
news:eQ******** ******@TK2MSFTN GP02.phx.gbl...
In reviewing my web site statistics, I see that I get 404 errors (often
enough to make me ask about it) when users try to click on a link to a
secure external site (i.e. an https:// link).

I've tested these links multiple times, and they always work fine for me.
Other links do not seem to have trouble. It seems to be related to
"https://" for some reason. I get this for another site too.

The statistics page shows the 404 failed link with an additional
forward-slash at at the start of the url, such as:

"/https://www.SomeRandomW ebSite.com"

Does anyone know why this happens and how I can prevent it? Is this a
browser-specific issue that I have no control over?

Thanks!

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )

Jun 15 '06 #2
No - as I said, the link is fine. I just checked again. No extra slash. No extra space. Just a solid anchor tag as it is supposed to be. I never have any trouble clicking it, but for some reason I get it listed as a 404 with a preceding forward slash for certain clicks.

My best guess at this point is that it is some particular browser causing it to happen... but I'm really at a loss here.

--
Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Jun 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
74987
by: Stephen Ferg | last post by:
I have a question that is not directly Python-related. But I thought I'd ask the most erudite group that I know... :-) When did Windows start accepting the forward slash as a path separator character? At one time, it was accepted as a truism that Windows (like MS-DOS) was different from Unix because Windows used the backslash as the path separator character, whereas Unix used the forward slash.
16
60605
by: Paul Sweeney | last post by:
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at http://xhaus.com/alan/python/proxies.html, but while many claim to support https, if you actually point your browser at the proxies, they work fine for http, but not for https pages. TIA
4
4229
by: Jon | last post by:
I have links that open https secondary windows using: window.open(url, windowName); The windowName is always the same but I keep getting new windows. Is it possible for each of the links to open in the same window? Thanks, Jon
1
1851
by: Luis Esteban Valencia | last post by:
have a website that uses both http and https. I am able to change any hard coded http links to relative paths. No problem. But, I have several aspx and ascx pages that contain hard coded links that are https. I have to get rid of those, asap. I know HTML and beginning+ C#. I have heard that you do something in the web config? I guess that would be ideal. I only have about 10 pages that need the https links to be relative.
3
2348
by: laredotornado | last post by:
Hello, Is there any notation that would allow me to write a reference to an HTTPS page without specifying the entire url? For example, right now I have <a href="order_form.html">Order Here</a> I'd like the order form page to appear "https://mydomain.myhost.com/order_form.html" without writing the
1
15146
by: Kberg | last post by:
In case anyone is interested, this is how I solved the problem of replacing a back slash with a forward slash (as in being able to access a document on a file share on an intranet via a browser) if you cut and paste a path from windows explorer \\myshare\mydir\mydoc.txt into a form textbox, you can use the following code to transform it into something usable by a browser: mytxt = document.myForm.myTextBox.value; mytxt =...
2
12618
by: Perl Beginner | last post by:
Hi, Is there a way to find a line in a text file that starts with a forward slash? This is how i find a line in text file that starts with a word and then print that line to another text file: open( FILE, "<$file" ); open( COPIED_FILE, ">$copiedfile" ); while( <FILE> ) { $templine = $_; if ($templine =~ m/DELTA\//)
4
4934
by: destroooooy | last post by:
Hi folks, I'm finding some (what I consider) curious behavior with the string methods and the forward slash character. I'm writing a program to rename mp3 files based on their id3 tags, and I want to protect against goofy characters in the in tags. So I do the following: unsafe_chars = "/#()!@$%^&*{}\'\"`?<>| \t\n" alt_chars = "_________________________" s_artist.translate(maketranstable(unsafe_chars, alt_chars))
1
2511
by: rnakawat | last post by:
I seem to have a problem using the preceding:: on substrings of the value. I'll try to explain with an example: Let's say I had a XML that look like: <Root> <Row> <Cell Name="Street" Value="2nd Street" /> </Row> <Row>
0
8590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9066
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8779
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8783
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4320
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4540
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1946
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.