Query arguments are in %{QUERY_STRING}
, so you have to look there:
RewriteCond %{QUERY_STRING} ^p=\d+
RewriteRule ^ http://www.example.com/newblog/ [L,R=301]
Related Posts:
- Stop WordPress and Plugins from Overwriting .htaccess
- Which is better: 301 Redirect in my .htaccess file or a plugin like Redirection?
- where to add redirection rewriterule in .htaccess file?
- How do I setup htaccess for 301 redirects, post Joomla to WordPress migration? [closed]
- WordPress permalink, stop redirection
- Redirect wrong links WordPress
- What’s the best way to manage a lot of 301 redirects in WordPress?
- different CNAME to corresponding subfolders
- Redirect from domain.com to subdomain.domain.com
- htaccess – Redirect to subfolder without changing browser URL
- Safely redirect old WordPress blog links to new WP blog
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- Redirecting WordPress /.htaccess / HSTS / SSL
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirect www to non-www htaccess
- Admin-Ajax.php, SSL, Non-SSL
- Specific URL has 403 Forbidden status code
- How to: 301 Redirect /category/ to /customname/
- WordPress site displaying 404 for any page apart from index
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Cant block wordpress readme files
- WordPress keeps deleting .htaccess file
- Prevent users from browsing through the media galleries
- How to modify the .htaccess to force ssl on login and admin pages
- WordPress URL/Folder ReWrite using Htaccess
- Why specific file directory fails to redirect but its parent folder succeeds?
- .htaccess redirects no longer work
- Exclude subfolder from WP-redirect works with html but not php files
- Server crashed trying to restore wordpress multisite, images are not found pls help
- Redirect from different port to subdomain – htaccess
- WordPress Redirect 301 register page
- How to redirect from various ?page_id= to home page?
- Redirect 301 www.my-site.com/page/n to www.my-site.com/ [closed]
- Only expose routes with prefix /wp-json on WordPress using Apache
- Headless WordPress redirect front-page to login page [closed]
- Hardening wordpress: blocking /includes with htaccess
- 301 Redirect To Post ID
- Install a Network under a mapped domain
- add_rewrite_rule fro html to another url not working
- htaccess – RewriteRule without redirect not working
- Changed permalink structure. Need help with redirecting old posts
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- How to add new redirection on wordpress site
- Landing Page Redirect Chain | http->https->https www
- Modify the .htaccess file
- WordPress site not working after move
- Giving to wordpress it’s own directory cause login loop
- Redirect all requested url to new url
- htaccess, site and staging in subdirectories
- WordPress sites in subfolders
- Admin Panel Slowdown After SSL Verification
- WordPress category with 404 error
- reducing number of URL Redirects and increasing speed
- Trouble adding directory rewrite to htaccess under wordpress [closed]
- How do I apply friendly URL permalinks to a custom WordPress template?
- Redirecting all posts after changing URL structure with htaccess
- Redirect all posts permalinks from “.html” to “/”
- How to use https on one page only?
- create virtual subdomains for a bunch of urls on a site via .htaccess
- htaccess getting overwritten over and over = 404 error
- htaccess problem not being able to overwrite previous rules
- wordpress blog displaying blank pages [closed]
- Relative links stop working after moving wordpress site from hosting to localhost
- Prevent wordpress autoredirect
- How to redirect only 404 pages with htaccess in WordPress
- How to fix .htaccess corrupted
- Permalinks do not include www subdomain
- Redirection with a wildcard
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- All navigation links on website redirect to same page
- WordPress is removing trailing slash
- www redirects to another directory in wordpress
- Force a 403 response to xml file in WordPress
- multisite 404 subfolder same name slug as site
- Redirect files in uploads directory if WordPress user not logged in
- Redirect wordpress site to www from non www on wordpress server
- How to make the redirects right? IP to domain name folders
- Using cache brokes redirecting
- Update htaccess in several WP sites at once
- Pretty Url not working on the server
- How to use slug with subdomain?
- Fresh install redirects to www, breaking page loads
- Reversing domain ‘sharding’ with htaccess
- WordPress Intercepting Requests To A File In Public HTML
- Installing wordpress on subdirectory 2 levels down
- Cannot Override WordPress 404 for a Sub-Directory
- adding a rewrite rule in wordpress functions file
- Multisite permalinks for subfolder wordpress installation
- Missing visual editor after placing a redirect rule into the .htaccess file
- Redirect not working
- Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
- WordPress site not redirecting properly
- How to redirect all pages of a blog to a new blog
- .htaccess for Subdomain and Subfolder w/SSL
- Why my wp site always redirecting to the old website path..?
- Hiding wp-config.php via .htaccess on an install installed in another directory?
- 301 Redirect posts to newly added categories
- .htaccess seems to be required but I can not find it