Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Mod_rewrite: rewriting a hash (#)

Posted on 2009-04-11
2
Medium Priority
?
1,680 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 1000 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
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…
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.
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

916 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