Forum Moderators: phranque

Message Too Old, No Replies

How to rewrite url + replace a space = " "

         

redstrike

7:27 am on Aug 23, 2007 (gmt 0)

10+ Year Member



My site have links like this (using ajax):

http://example.com/#Play,200,Alo Alo

Someone could help me rewrite it to

http://example.com/#/Play,200,Alo_Alo.html

Thanks so much!

vincevincevince

7:35 am on Aug 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No... because # is not sent from the browser to the server at all :(

phranque

7:50 am on Aug 23, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



to expand on vvv's response, the # is an on page anchor rather than the url of a document and is handled entirely by the browser rather than the server.
you might consider leaving the anchors on page but writing your links such as:
http://example.com/Play,200,Alo_Alo.html
and then getting the server to rewrite to:
http://example.com/#Play,200,Alo Alo

redstrike

4:11 pm on Aug 23, 2007 (gmt 0)

10+ Year Member



Thanks for your solution!

If remove the #, i think it'll better ^^ for me!

But if we remove the #, is it affect to the ajax on page?

I am using that URL for SEO ajax sites ++!

is there any way to SEO a site using ajax?

Thanks! Could you help me complete that .htaccess file?