Forum Moderators: phranque

Message Too Old, No Replies

redirection to specific internal content of a page?

howto redirect through to /admin.html#copyright

         

icpix

11:30 am on Jun 23, 2004 (gmt 0)

10+ Year Member



Having difficulty getting my few remaining grey cells functioning well enough;~/ I'd like to concatenate several pages' content into a single page but haven't cracked how to amend the redirection.

Previously the shortfrom URL redirection was simply:
h-t-t-p://mysite/copyright

and the necessary .htaccess command line thus:
RewriteRule ^copyright$ /html/copyright.html [R]

Concatenated stuff will appear on admin.html with a browser command line of the form:
h-t-t-p://mysite/html/admin.html#copyright

However none of the following .htaccess lines do the business:
RewriteRule ^copyright$ /html/admin.html#copyright [R]
RewriteRule ^copyright$ /html/admin.html\#copyright [R]
RewriteRule ^copyright$ /html/admin.html%23copyright [R]
RewriteRule ^copyright$ /html/admin.html\%23copyright [R]

Would you be able to offer me some of the right sort of magic please?

best wishes, Robert

jdMorgan

3:01 pm on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



icpix,

The local anchors are handled client-side only. There is no way to "redirect" to a local anchor, except when the user clicks on a local anchor link on a page. When this is done, the browser itself handles the local part.

Keeping your pages separate is probably your best bet.

Jim

icpix

3:19 pm on Jun 23, 2004 (gmt 0)

10+ Year Member



Jim

Noted. Oh well, looking on the bright side, no wonder my remaining grey cells couldn't figure it out;~)

best wishes, Robert