[wp-trac] Re: [WordPress Trac] #3451: Page URIs are case-sensitive
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 10 05:54:37 GMT 2007
#3451: Page URIs are case-sensitive
-------------------------+--------------------------------------------------
Reporter: pah2 | Owner: markjaquith
Type: defect | Status: assigned
Priority: normal | Milestone: 2.4
Component: General | Version: 2.1
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+--------------------------------------------------
Comment (by DD32):
the canonical code redirects ?page_id=43 to the correct page allready.
I've just made a patch up which attempts to redirect pages, However, it
may be too greedy for the likes of some.
Lets say i have a page structure like this:
{{{
Sub-marine
About Me
Sub about me
sub-sub about me
}}}
The attached patch will redirect:
{{{
hostname/wordpress/abOUT-me/ => hostname/wordpress/about-me/
hostname/wordpress/abOUT-me/sub- => hostname/wordpress/about-me/sub-about-
me/
hostname/wordpress/abOUT-me/sub-sub => hostname/wordpress/about-me/sub-
about-me/sub-sub-about-me/
hostname/wordpress/sub- => hostname/wordpress/sub-marine/
hostname/wordpress/sub-sub => hostname/wordpress/about-me/sub-about-me
/sub-sub-about-me/
}}}
Now, getting to the greedy part:[[BR]]
It also has the effect of redirecting things like:
{{{
hostname/wordpress/a => hostname/wordpress/about-me/
hostname/wordpress/su => hostname/wordpress/sub-marine/
hostname/wordpress/hta => hostname/wordpress/2007/11/05/htaccess/
}}}
In the case where there's multiple destinations possible, It selects the
uppermost item alphabetically.[[BR]]
So hostname/wordpress/a will choose 'about-me' over 'azzes', and 'about-
me' over 'parent/aaaa-sub-page'
If it comes accross a semi-permalink:[[BR]]
{{{hostname/wordpress/perma/structure/post-na}}} it'll still redirect it
to that post: {{{hostname/wordpress/perma/structure/post-name/}}} rather
than sending it to {{{hostname/wordpress/post-nam/}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3451#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list