The redirect has to be a 301, not an internal request. Otherwise WordPress will search dor a page named blog.
And you don’t need mod_rewrite.
# Apache 1.3 needs a complete URL
RedirectMatch Permanent ^/blog$ http://example.com/
# Apache 2.x needs just the path
RedirectMatch Permanent ^/blog$ /
Related Posts:
- Masking wp-content/themes/name/images to just images directory using htaccess
- Rewrite rule to load images from production does nothing
- WordPress rewrite rules don’t need ^?
- Adding rewrite rules directly to .htaccess file
- a one-off rewrite rule
- Change htaccess to redirect to index.php in subfolder
- How to remove wordpress directory slash
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Map secondary domain to other’s virtual subfolder
- force www rewrite if wordpress put in a folder
- How do I make WordPress revise an .htaccess file a certain way?
- Pretty URL via Rewrite
- ModRewrite not working properly
- Can’t get pretty permalinks to work without index.php
- Add rewrite endpoint and .htaccess
- htaccess – Redirect to subfolder without changing browser URL
- Generic htaccess redirect www to non-www
- How to create custom URL routes?
- Passing parameters to a custom page template using clean urls
- Use subdomain for certain urls
- Clash of the rewrites
- Create built-in pages without creating actual pages
- How to remove “admin.php?page=” from wp-admin using .htaccess?
- SEO Friendly URLs for my plugin categories
- How to map permalinks with accented letters to sanitized slugs?
- Mod_rewrite delete parameter in 301 Redirect
- Custom rewrite rules are sending everything to index.php
- WordPress keeps writing rewrite rules to .htaccess
- WordPress Rewrite
- Prevent WordPress from automatically correcting URLs
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- htaccess: Remove trailing slash from URL ending with .xml/ only
- External/non-WP rewrite rule without QSA
- Issue with using .htaccess to redirect feedburner feed
- Remove all categories from URL
- hard flush_rewrite_rules() not regenerating .htaccess
- Map alt domain to specific section of website w/o MU
- Cleanup URL for a custom page in wordpress
- Remove base slug in permalinks of hierarchical custom post type
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress Page Id
- WordPress SSL (https) is not working with custom permalink
- How to redirect http://mydomain/blog/blahblah/ to http://mydomain/blahblah/ in wordpress htaccess?
- add_rewrite_rule fro html to another url not working
- Double domain name in category URL-s
- Access files at new location using old file paths
- NextGEN Gallery Lightbox – Social Share URL Redirect
- Custom rewrite not working
- Url Rewriting a dynamic wordpress page
- WordPress .htaccess blocks mine?
- My WP_options db rewrite_rules Does Not Work
- Disable Pagination on Pages
- Rewrite Preview URL to include index.php
- WordPress Redirecting Non Category Pages /page/nnn to their Canonical URLs
- WP is ignoring .htaccess rewritten URL
- How can I dynamically generate an image with a static image URL?
- Rewrite wp-login.php URLS to static pages?
- Need help with simple rewrite rule (shouldn’t this be easy?)
- Rewrite custom post type URL parameters
- Changed pagination URLS to use p= instead of paged=
- “View post” leads to odd URL
- Change pagination url format
- React Router with WordPress
- joomla to wordpress migration and 404 errors issues [closed]
- Redirecting /px/?q=x to /px/x/
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- URL redirect on updating the post date
- htaccess rewrite, adding segment to url
- mod-rewrite exception? keep #hash in matching urls?
- ow to change cutsom page url of wordpress site using htaccess
- Redirect htaccess [closed]
- How can I create custom URL routes?
- WordPress .htaccess ignore path and subsequent .htaccess files in subfolders
- How to customize sub-URLs in a wordpress website (.htaccess)
- Rewriting a date hierarchy into a ‘yyyy-mm-dd’ slug
- modify URL with mod_rewrite or hook
- Rewrite rule that wp-login.php?action=register is left alone
- How to change an existing wordpress page rewrite rule?
- Rewrite htacess rule doesn’t work
- Translatepress taxonomy and custom post type root FIX
- WordPress URL redirect and replace ? question mark
- URL Rewrite 404
- Fresh install redirects to www, breaking page loads
- Rewrite Url using .htaccess or hook
- Is it possible to rewrite a page URL from ID to name from an API?
- Rewrite URL to get rid of wp-content etc and change URL
- Moved WordPress to Subdirectory, still hijacking requests to files outside of its directory
- How to add gallery slug to attachment url?
- Rewrite URL query string for all pages
- Url wordpress rewrite
- .htaccess RewriteRule to include post type and taxonomy
- URL rewrite results in a 404, but everything should work!
- Custom Rewrite for Profiles
- Stop wordpress to redirecting home page if no page found
- Additional .htaccess rules based on wp page
- Changes done to .htaccess are not getting reverted back
- WordPress total posts per page changed and now 404 Http error comes out [closed]
- How to rename the WordPress wp-login.php running on IIS6?
- Please give me the rewrite rules for my ugly urls
- WP-Include rewrite directory