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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -