Rewrite URL in .htaccess

Go To StackoverFlow.com

0

I need to do a rewrite in .htaccess. User who stay at http://mydomain.com/article_name#number it's same to be in http://mydomain.com/article?var1=number&var2=number&var3=number.
How can i do this ?

2012-04-04 20:30
by enfix


3

This should do it

RewriteRule ^/article_name#(\d+)$ /article?var1=$1&var2=$1&var3=$1  [NC]
2012-04-04 22:17
by Romhein
Dont' work. I read that the values after hash(#) doesn't sent to server. Is it possible - enfix 2012-04-04 23:02
how do the values after the # look like - Romhein 2012-04-04 23:32
it's a number like #12 - enfix 2012-04-05 06:51
Is there any other rewrite rule that could take precedence over this one - Romhein 2012-04-05 13:26
Ads