[wp-hackers] Ignore Portions of URI

Dougal Campbell dougal at gunters.org
Wed Jan 14 22:22:08 GMT 2009


Otto wrote:
> On Mon, Jan 12, 2009 at 7:02 AM, scribu <scribu at gmail.com> wrote:
>   
>> Using #123/5 would be better because ALL search engines ignore that bit.
>>     
>
> So do servers, since browsers don't send #links to the server. No way
> to get that information from inside the PHP code.
>   

There is if you use a dash of AJAX :)

I've used that technique on projects before. Use the hash portion of the 
URL to store state data, and use Javascript to communicate it back and 
forth between browser and server.

-- 
Dougal Campbell <dougal at gunters.org>
http://dougal.gunters.org/
http://twitter.com/dougal


More information about the wp-hackers mailing list