php - Can't make HTACCESS rewrite with pameters -


i have routing system set in system already. trying add 1 exception it, @ beginning of htaccess added

rewritecond %{request_uri} rewriterule ^(.*)anything(.*)$ http://test.com?t=$2 [qsa,l] 

so when go url: localhost/mysite/anything/param, expecting redirect http://test.com?t=param

but goes http://test.com, because t variable blank.

what matter solution? need else?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -