on-internet
← Community

How to write a wildcard .htaccess rule to 301 redirect url parameters to a static file?

Stack Overflow ·

e.g. URLs of the form /forum/viewtopic.php?id=1234 to redirect to: /forum/static_1234.html 1234 is just an example, I need it to match all 1-4 digit ID's There are a bunch of previous questions like this but they all work to just redirect a single page, not a wildcard match.

Comments

Sign in or sign up to comment and upvote.

No comments yet.