help regarding dynamic redirect rule in htaccess

Posted by user251336 on Stack Overflow See other posts from Stack Overflow or by user251336
Published on 2010-04-22T06:38:44Z Indexed on 2010/04/22 6:43 UTC
Read the original article Hit count: 213

Filed under:
|
|

hi all, I need ur help for given subject. I am playing with htaccess rules first time in life.

here is the scene -

i want to redirect the urls -

 http://www.abc.com/var1
 http://www.abc.com/var2

to follwing urls -

 http://www.abc.com/index.php?u=var1
 http://www.abc.com/index.php?u=var2

In this case the values var1 & var2 can be anything (i.e. string which will contain only alphanumeric characters.)

One more thing -

I want to skip this rule if the url is -

http://www.abc.com/SKIPME

Please help me to write this rule!

Regards, Shahu!

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about dynamic