Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1684
  • Last Modified:

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
0
Ruurtjan
Asked:
Ruurtjan
1 Solution
 
caterham_wwwCommented:
No, this is not possible because the server never receives #fragment. A client would request "GET /folder HTTP/1.1" only. You can use JavaScript to analyze the location at client side.
0
 
RuurtjanAuthor Commented:
Hi,

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
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now