Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule with internal link

How to add the internal link to RewriteRule?

         

smagdy

9:22 pm on Mar 18, 2006 (gmt 0)

10+ Year Member



Hello,

How to write this rule and add to it internal link like #jump?

RewriteRule ^([a-z]+)$ /new.php?lan=a

This is not working:
RewriteRule ^([a-z]+)$ /new.php?lan=a#jump

Thanks in advance

smagdy

9:24 pm on Mar 18, 2006 (gmt 0)

10+ Year Member



Sorry i meant...

RewriteRule ^([a-z]+)$ /new.php?lan=$1

This is not working:
RewriteRule ^([a-z]+)$ /new.php?lan=$1#jump

Thanks

jdMorgan

9:50 pm on Mar 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Named anchors are handled only within the client browser, so there's no way to do this.

Jim

smagdy

10:13 pm on Mar 18, 2006 (gmt 0)

10+ Year Member



but i am seeing it in some sites... how did they do it?

[On a swedish Web site I visited, if you] submit the form without filling anything, you will see no # in the url but it jumps to first error which is the blank (name) box.

How is it done?

Thanks in advance

[edited by: jdMorgan at 11:12 pm (utc) on Mar. 18, 2006]
[edit reason] No URLs, please. [/edit]