Solved

Mod_rewrite: rewriting a hash (#)

Posted on 2009-04-11
2
1,668 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
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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Some of the SEO trends we might expect in 2017.
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 Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

820 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