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
- How to add custom rewrite rule to .htaccess?
- Use subdomain for certain urls
- How to show the same content on multiple URLs?
- Clash of the rewrites
- How to change default page slug?
- How do I remove a word from a url in WordPress using .htaccess?
- Hijacking the URL for filtering
- Custom rewrite rules are sending everything to index.php
- Removing rules from .htaccess
- Sub domain redirection to taxonomy
- custom htaccess rewrite rule for page
- unexpected problem in url rewrite
- Need to make a php file inside theme accessible via url
- How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?
- Redirecting all old links from previous EE site to new WP site in one go?
- Two “.htaccess” Files Located in Different Directories?
- WordPress redirection to get url friendly
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- Rewrite WordPress Custom URL
- WordPress removes spaces in URL on pagination
- Custom rewrite rule
- Remove special characters in a URL
- Add query string to url and display it as normal url part /folder/
- Alias ‘wp-content’ directory to something shorter (framework?)
- WordPress .htaccess – route other URLs to another app
- hard flush_rewrite_rules() not regenerating .htaccess
- 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
- Changing RSS feed URL structure
- Why is my mod_rewrite not working?
- add_rewrite_rule fro html to another url not working
- Preserve Domain Alias
- WordPress Redirecting Non Category Pages /page/nnn to their Canonical URLs
- .htaccess rewrite
- Need help with simple rewrite rule (shouldn’t this be easy?)
- Cannot access wp-admin without trailing slash – .htaccess configuration for WordPress behind a nginx proxy
- Wildcard forward all posts and pages with few exceptions
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- URL Rewriting for PHP script on an image URL
- “View post” leads to odd URL
- How to redirect specific URL to Subdomain
- Replace specific middle part of url
- How to rewrite wordpress urls with index.php in them
- Custom Rewrite rule to captured post (rewrite rule to rewrite rule)
- Rewriting a subdomain page on one WordPress installation to a parent domain on another
- Changing URL scheme, mod_rewrite not helping
- Customise particular RSS permalink
- RSS feed rewrite matching wrong rule
- Rewrite vs Redirect from ?p={ID}
- Is WordPress API visible from PHP file called in htaccess
- Having WordPress control only certain pages with .htaccess?
- Localize URL bases
- Help with a custom rewrite
- How can I create custom URL routes?
- Rewrite specific action url
- 301 Rewriting htaccess
- Overwrite WordPress’s URL rewrite not working
- 404 redirect based on url
- Proper way to set up rewrite with Wp
- WordPress Page Not Found if Permalink Settings is Postname
- Exclude subfolder in WordPress permalink
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- Point 404 pages to homepage
- WordPress pagination broken for page 2,3 with custom permalink. Redirects to baseurl
- Translatepress taxonomy and custom post type root FIX
- Help with .htaccess setup to hide WordPress Directory
- Multiple permalink with and without category for same post
- Custom Params in URL
- Rewrite URL to get rid of wp-content etc and change URL
- Rewrite URL for attachments
- How to add gallery slug to attachment url?
- Add ReWrite from Old Pages to WordPress (remove .php)
- Fully mask *all* traces of WordPress installation subdirectory?
- Redirect A URL Pattern In WordPress Using .htaccess
- Rewrite Question
- Migration from old CMS to WordPress 301 redirection rules?
- Simple URL rewriting gone wrong
- What is the proper way to use add_rewrite_rule to remove the (question mark)?
- Function to rewrite URl in WordPress
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- How to rename the WordPress wp-login.php running on IIS6?
- how to rewrite folder name in url to another name
- Rewrite Page Parameters