httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Romano <michelerom...@suite101.com>
Subject [users@httpd] preserving internal links on a rewrite
Date Tue, 03 Oct 2006 19:14:12 GMT
Hello,
I am having trouble with a RewriteRule and I was hoping someone can lead 
me in the right direction, as I haven't been able to track down an 
answer on my own.

I am setting up a rewrite that includes a target (eg. 
http://www.somedomain.com/filename.cfm#locationOnPage to relocate to 
http://www.somedomain.com/directory/filename.cfm#locationOnPage) and I 
can't seem to get the target information to work (ie. locationOnPage)

This is the code I currently have:

RewriteRule ^([a-zA-Z0-9_]+\.cfm)(.+) /directory/$1$2

there never seems to be any information on $2... Is it possible to 
preserve the target?

Thanks,
Michele Romano


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message