Results 1 to 1 of 1
-
05-08-2011, 03:21 PM #1
Can I use fragments to reference new pages?
I have a site that currently has the structure:
/examole.com/page1.htm#anchor1
/examole.com/page1.htm#anchor2
and I want it to have the structure:
/examole.com/page1.htm
/examole.com/anchor1.htm
/examole.com/anchor2.htm
My problem is how to get ahold of the fragments anchor1 and anchor2 in order to redirect
/examole.com/page1.htm#anchor1 to /examole.com/anchor1.htm and
/examole.com/page1.htm#anchor2 to /examole.com/anchor2.htm
My best shot at this which doesn't work is:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{THE_REQUEST} GET\ (.*)#(.*)\ HTTP/.*
RewriteRule ^(.*)/(.*)$ /$1/%2.htm [R,L]
Any help on the problem will be greatly appreciated.
Similar Threads
-
SEO Reference..
By saveyourlife in forum Search Engine OptimizationReplies: 11Last Post: 02-28-2011, 12:08 AM -
Variable reference to a column in MS SQL
By DCSS in forum DatabasesReplies: 6Last Post: 12-29-2010, 08:49 PM -
Create Killer SEO Optimized Sales Pages, Landing Pages & Squeeze Pages
By gullsinn in forum Marketplace - Buy, Sell & TradeReplies: 0Last Post: 08-16-2010, 02:26 AM -
SEO Reference..
By eagle09 in forum Search Engine OptimizationReplies: 1Last Post: 03-01-2010, 04:31 AM -
C++ Reference
By Amit.Verma in forum Web Development - Programming & CodingReplies: 1Last Post: 08-12-2008, 02:18 PM


Reply With Quote

