You can use this rule:
RewriteRule ^menu\.php$ /new-page-name? [L,R=301]
Take note of trailing ?
in the end which is used for stripping off any existing query string in the original URI.
More Related Contents:
- Remove .php from urls with htaccess
- Set RewriteBase to the current folder path dynamically
- How to prevent a file from direct URL Access?
- Redirect to other domain but keep typed domain
- how to remove folder name from url using htaccess
- Remove ‘index.php’ from URL with .htaccess
- apache HTTP:X-Forwarded-Proto in .htaccess is causing redirect loop in dev environment
- Convert to lowercase in a mod_rewrite rule
- 301 Redirect to replace all spaces to hyphens
- .htaccess RewriteRule to path without changing URL
- htaccess force https and redirect www to non-www, but no other subdomains
- Redirect all traffic to root of another domain
- Apache mod_rewrite REDIRECT_STATUS condition causing directory listing
- deny direct access to a folder and file by htaccess
- URL rewriting : css, js, and images not loading
- How can I match query string variables with mod_rewrite?
- How can I use .htaccess to hide .php URL extensions?
- .htaccess rewrite “/book.php?id=1234” to “/book/1234”
- apache mod_rewrite one rule for any number of possibilities
- Match Question Mark in mod_rewrite rule regex
- How to create clean url using .htaccess
- RewriteCond to match query string parameters in any order
- URL rewriting for different protocols in .htaccess
- The Redirection of Multiple Parked Domains doesn’t Work with Filename [closed]
- Hidden features of mod_rewrite
- Pretty URLs with .htaccess
- Forbidden You don’t have permission to access / on this server [closed]
- htaccess rewrite breaks relative paths
- mod_rewrite: remove trailing slash (only one!)
- CSS, JS and images do not display with pretty url