I have a problem on my website when i am trying to access a product with a space followed by a slash. It does not work. Just using a space in a articleno works fine, but when the space is followed by a slash it does not work. Any ideas to why this is? Is it the IIS:en not knowing how to route? Or is it the browser treating space, slash as a sign?
Example:
ArticleNo: VT xxx / xx does not work.
ArticleNo: VT xxx/xx works.
I can’t just strip the spaces either because other products have got them in their articlenumbers.
The url i am trying to access will be like this.
somestore.com/product/VT XXX / XX/ <- Does not work.
somestore.com/product/VT XXX/XX/ <- Does work.
It is only when space is followed by the slash that it does not find my product.
I suspect it is the webserver that is not handling this, rather than the browser. What error message are you getting?
A forward slash in a url indicates a subdirectory so in your example, the webserver will interpret
VT xxx/xxas thexxfile in theVT xxxdirectory. Having a space precede a slash will confuse the server because a space at the end of a directory name is not allowed.If the forward slash is part of the product id, you will need to encode the space and the slash in the url and handle that on the server.