I am having problems with mod_rewrite which is throwing me the same error 404 is as follows:
RewriteRule ^music.mp3?id=(.*)$ music.php?id= [L]
i need url /music.mp3?id=1 and real url /music.php?id=1
any idea??
I think something is misunderstood in the path RewriteRule
You can’t match against the query string (everything after the ? in the URL) in a
RewriteRule. But you’re not really matching against it anyways, it looks like you just need to appended to your target URI, so:Should be good enough. Any query string parameters (like
?id=1) will automatically get appended at the end.