Friday, 15 April 2011

.htaccess - How to redirect a url containing specific strings and Percentage (%) character -



.htaccess - How to redirect a url containing specific strings and Percentage (%) character -

here illustration urls:

http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9zzwfyy2gvc2luz2vyl3rpdgxll05vc2evcgfnzs80 http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9hbgj1bxmvnjm%3d http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9hbgj1bxmvmzcylw%3d%3d http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9hbgj1bxmvndiwlw%3d%3d http://www.mywebsite.com/login/return_url/64-l2xvz2lul3jldhvybl91cmwvnjqttdixd015mxrkwe5wwxk5agjhsjfiwe12txpjeex3jtnejtne http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9hbgj1bxmvmja%3d

i redirect url contains 64-l21 ones listed above http://www.mywebsite.com/login/

i have tried:

rewritecond %{request_uri} 64-l21 rewriterule .* /login/ [r,l]

the above rule works fine urls

http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9zzwfyy2gvc2luz2vyl3rpdgxll05vc2evcgfnzs80 http://www.mywebsite.com/login/return_url/64-l21wmy1tdxnpyy9hbgj1bxmvnjm

but doesn't work whenever there percentage sign (%) in url

can pls provide htaccess rule address percentage sign (%), want both urls , without sign redirect

thanks in advance

.htaccess redirect special-characters percentage

No comments:

Post a Comment