On 10/3/06, Michele Romano <micheleromano@xxxxxxxxxxxx> wrote:
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?
I don't believe so. Check your access log, and you'll find that the browser isn't even sending the fragment (the part with the #) to the server. It resolves it internally. An old discussion of this issue is at http://www.w3.org/Protocols/HTTP/Fragment/draft-bos-http-redirect-00.txt Joshua. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx