apache - Redirect link to new link with anchor tag -


i have url: www.example.com/test/here.

i want re-direct to: www.example.com/test2/home#here.

i have tried:

rewriterule  /apply$ www.example.com/test2/home#here [r, ne] 

but getting server error. sorry not htaccess files.

you getting server error because of this:

[r, ne] 

you can't have spaces in rewrite flags, confuses mod_rewrite , makes think it's parameter, making think you've not closed flags ].

besides that, you're regex pattern: /apply$ will never match /test/here. perhaps, should try ^test/here$ instead.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c# - Why won't my code write to SQL? -

c# - Avoiding duplicate methods for Task and Task<T> -