Solved

Mod_rewrite: rewriting a hash (#)

Posted on 2009-04-11
2
1,673 Views
Last Modified: 2012-06-27
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
Comment
Question by:Ruurtjan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 250 total points
ID: 24122544
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
 
LVL 3

Author Comment

by:Ruurtjan
ID: 24122833
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

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
A/B testing is a simple and effective trick to get to know your audience, increase website conversions and make the most out of your online ad campaigns. It's widely available and doesn't need much tech knowledge to be executed, but the results it y…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question