Welcome to WebmasterWorld Guest from 54.197.116.116

Forum Moderators: phranque

Message Too Old, No Replies

Double Slashes ("//") in URL

Does this signify anything, or can I filter them out?

   
6:09 am on Dec 18, 2006 (gmt 0)

5+ Year Member



Sometimes I see requests for files like http://www.example.com//file/

Does the double slash "//" mean anything?

I'm thinking about filtering requests with double slashes to just single slashes, but I'm wondering if I'll be messing anything up.

http://www.example.com//file/ => http://www.example.com/file/

Thanks

3:57 pm on Dec 18, 2006 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



If the referer is coming from your own site you seemingly have a link setup incorrectly somewhere in your html documents.
8:15 pm on Dec 18, 2006 (gmt 0)

5+ Year Member



Dito. When I have seen this, it has been a typo error int he referring document.
1:28 am on Dec 19, 2006 (gmt 0)

5+ Year Member



Dear Jeremy_H:

This redundancy can be the result of a miswritten RewriteRule directive in a per-directory context. If you use mod_rewrite, check the RewriteBase. Does the anomaly only occur after a specific file or directory request? Alternatively, does the anomaly only occur with a specific user-agent -- particularly, one that appears to be a robot? If possible, try going to the refering page and examine the source code.

--Randall