Member_2_4427310
asked on
Mod_rewrite: rewriting a hash (#)
Hey experts,
Is it posible to rewrite an url using mod_rewrite like this?
http://example.com/folder/#param
to
http://example.com/folder/index.php?url=param
Regards,
Ruurtjan
Is it posible to rewrite an url using mod_rewrite like this?
http://example.com/folder/#param
to
http://example.com/folder/index.php?url=param
Regards,
Ruurtjan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanx for your reply.
"No, this is not possible because the server never receives #fragment. A client would request "GET /folder HTTP/1.1" only."
I figured something like this was the case..
"You can use JavaScript to analyze the location at client side."
The problem is: When you click an <a> it will do an AJAX request and add #fragment.
I want google to index the content that was ajax'ed, so when you request the #fragment page it should have the content by default.
When I analyze the fragment and ajax that content (client side), google will not be able to see this.
Is there any search engine friendly way of using ajax?
Regards,
Ruurtjan