Timeline for Use the plus sign "+" instead of dash "-" in URLs
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 12, 2011 at 20:28 | comment | added | John P Bloch | Sorry, to answer your question, I don't know when his code runs, but it redirects the page request to use the plus signs, so you get a fresh load starting with plus signs. | |
Apr 12, 2011 at 20:27 | comment | added | John P Bloch | Yes, but spaces in searches are ok. If you have a space in the slug you look up, it won't match what's in the database. | |
Apr 12, 2011 at 19:49 | comment | added | Chip Bennett | Doesn't Mark's code run after URL rewrites are applied? (mod_rewrite is all still a bit of a mystery to me) | |
Apr 12, 2011 at 19:24 | comment | added | John P Bloch |
Yeah, but + changes to a space when it's run through urldecode() , which WP does when matching against rewrite rules. You'd need to make sure you're checking against the correct slug in WP_Query , as well as modifying the permalink output, and maybe even filtering on redirect_canonical .
|
|
Apr 12, 2011 at 16:47 | history | answered | Chip Bennett | CC BY-SA 3.0 |