Mobile app version of vmapp.org
Login or Join
Shelley277

: Is there any problem with using two slashes in the middle of a URL? Possible Duplicate: What does the double slash mean in URLs? I'm working on a mod_rewrite URL structure as

@Shelley277

Posted in: #Url

Possible Duplicate:
What does the double slash mean in URLs?




I'm working on a mod_rewrite URL structure as follows:
example.com/search/filter1/filter2/filter3/filter4

There are some conditions where it is OK for the first attribute to be blank, but i want to keep the other attributes in the same position. (Otherwise I can't assume that the attribute in the second position represents what I want it to represent.) However this results in some URLs like this:
example.com/search//filter2/filter3/filter4

This seems to work in all browsers I've tested (Chrome,Firefox,IE9,IE compatible) and I'm not seeing any errors on the server side, so I can't think of any problems in using it. But it just looks wrong and weird to me and I'm not used to seeing it. Are there any potential downsides to using a structure that encourages URLs like this, or any major reasons no one seems to use it? (Everything I search in Google assumes I'm talking about the two slashes after http:)

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley277

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme