URL Rewrite On .htaccess

I’m trying to make a rewrite rule which will understand

http://mywebsite.com/test/1234

as

http://mywebsite.com/test.php?t=1234

Thats what I have right now and it doesn’t work

RewriteEngine on
RewriteRule ^test?t=([^/.]+)/?$ http://mywebsite.com/test/$1 [L]

Can someone give me a hand. Thank you.


Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.