Using quotation marks in URLs

Discuss practical ways rearrange URLs using mod_rewrite.

Using quotation marks in URLs

Postby servantofgod » Wed Oct 22, 2008 7:09 am

Is it not possible to get the server to accept quotation marks? for example If I have "" marks in my url (due to the fact my product names are reflected in the url, no matter what characters) It will completely dissappate the rest of the url beyond the quotation marks. Anyway around this?

For an example visit: ... =92&page=2

Look at the url for: Leather Sean Jean Belt with "SJ" Plackett Buckle
Posts: 22
Joined: Wed Oct 01, 2008 8:14 am
Location: Chicago

Postby richardk » Wed Oct 22, 2008 7:44 am

I can't see the problem URL on that page.

I'm guessing though that the problem is that they are being confused with the href='s ", eg.
Code: Select all
<a href="/abc"def"ghi">

If that is the case, they need to be URL encoded, so the output is
Code: Select all
<a href="/abc%22def%22ghi">
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 6 guests