Hi Karl,

Also, its probably worth mentioning here that those URLs are fine as long as
they are the canonical reference to each resource (page). If not then you
can have duplicate content problems with google. The way I have always done
this is to enforce lower case URLs like this: https://gist.github.com/613413

Of course when you echo your URL out of that function you have you should
run strtolower() on the output so google only indexes lower case URLs.

HTH,
Simon

On 21 May 2011 07:53, Admin <[email protected]> wrote:

>
>        Thanks Kip, with one TINY modification to deal with rogue
> apostrophes, that appears to have solved the issue beautifully!
>
>        Many grats and great kudos to you... if the Rapture hasn't taken
> you. ;)
>
>        Is now being deployed and the sitemap validates first pass! Sweet.
> :D
>
>        Cheers...
>
>
>
> > Hi Karl, does this help:
> > $result = preg_replace('/(?:\band\b)|(?:\bthe\b)|(?:\bof\b)|[&-:.?\\\\!
> () ]/i', '-', $input);
>
>
>
> ---
> Karl
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
>



-- 
Simon Holywell
http://www.simonholywell.com

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to