Solved

Mod_rewrite: rewriting a hash (#)

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RewriteRule in .htaccess file not working 8 58
Identifying problems with web pages not indexed by Google 8 153
Mystery SEO Links 11 60
outrank old results 2 20
Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…

734 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