I want to use mod rewrite to redirect the following dynamic URL with h
query string:
https://eu1.domain.com/~username/test.php?h=String_112016
To the following URL without the test.php
part:
https://eu1.domain.com/~username/String_112016
I tried the following in my htaccess file but it's getting 404:
RewriteEngine On
RewriteRule ^\~username/([^/]*)$ /~username/test.php?h=$1 [L]
I don't have any other rule in the htaccess file.