Welcome to SO. You’re redirecting the users of old website to a new website which will not send the content to the new site. In order to do that what you can do is install a plugin, I usually recommend Updraft plugin to transfer the content of old site to the new site.
This is not only easy to use but also helps in transfering everything including media and database from the site a (old site) to the new site (site b).
Edit:
Update your .htaccess to something like this:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^OLDDOMAIN\.com$ [NC]
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L]
Hope this answers your question.
Related Posts:
- How to create short urls for sharing and downloadable content?
- add_rewrite_rule: $matches var not replaced by captured value
- Custom permalinks with NextGEN Gallery
- How to change default page slug?
- Will references to ugly links automatically redirect to their pretty url permalink?
- How do I add a add_rewrite_rule without it redirecting?
- WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)
- Sub domain redirection to taxonomy
- Redirecting all old links from previous EE site to new WP site in one go?
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Rewrite WordPress Custom URL
- WordPress removes spaces in URL on pagination
- Changing WordPress blog name and web address
- Custom rewrite rule
- Home page with Polylang redirects to other page [closed]
- expecting 404 but redirecting to post with url subdirectory in post title
- Alias ‘wp-content’ directory to something shorter (framework?)
- Is there a ‘rake routes’ for wordpress?
- Remove Query String from URL on Redirect – Redirection Plugin
- add_rewrite_rule fro html to another url not working
- Double domain name in category URL-s
- WordPress redirects non-existing url to existing ones – how to disable
- Rewrite Preview URL to include index.php
- How to disable URL rewriting for specific URLs?
- Mobile version issue when domain forwarding with masking
- How do I retain url parameters the entire time a user browses my site?
- Can I change default registration link (without htaccess)?
- How do I display only the parent page in the url
- How to remove wordpress directory slash
- Wildcard forward all posts and pages with few exceptions
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- How to redirect large amount of URLs?
- Redirecting /px/?q=x to /px/x/
- URL redirect on updating the post date
- How to redirect a link to a new link?
- Rewrite vs Redirect from ?p={ID}
- 301 Redirect all posts urls from .html to / (without .html)
- Is WordPress API visible from PHP file called in htaccess
- Re-directing URLs with dates to URLs without dates
- Redirect htaccess [closed]
- How to redirect Webp files?
- 301 Rewriting htaccess
- 404 redirect based on url
- How are rewrite rules applied in WordPress?
- WordPress 3.1.2 Network Enabled non-www to www
- Redirect users with “.” (dot) in their username and replace with “-” (dash) to correct profile
- Redirect empty search to another page
- Remove part from dynamic url and redirect
- Fresh install redirects to www, breaking page loads
- Broken page redirect
- Make URL like /fr/something display same as /something
- Remove trailing slash
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Error 404 wordpress redirecting URL
- Redirect A URL Pattern In WordPress Using .htaccess
- URLs ending with number higher than 2147483647 redirects to to domain.com/2147483647
- Migration from old CMS to WordPress 301 redirection rules?
- Changes done to .htaccess are not getting reverted back
- How to change search url produced by ‘s GET method?
- Using .htaccess to redirect /da/ to / in URL
- openlitespeed rewrite rules conversion from apache
- Allow requests to resources outside the wordpress folder
- Using the Rewrite API to Construct a RESTful URL
- Adding rewrite endpoint breaks static front page
- Custom post type yearly/ monthly archive permalinks
- How to add dot(“.”) in post slug
- add_rewrite_rule not loading correct page nor getting variables
- Add language/country code to each possible URL
- WordPress Rewrite
- How to let a single post have its own domain name
- custom template for custom url
- Bulk 301 redirect for custom post type
- How to have multiple rewrite endpoints in the same URL?
- add_rewrite_rule is not taking effect in WordPress? .htaccess file doesn’t update
- How to define a callback for an URI?
- How can I dynamically generate an image with a static image URL?
- Rewrite wp-login.php URLS to static pages?
- How to access custom pages
- Changed pagination URLS to use p= instead of paged=
- React Router with WordPress
- joomla to wordpress migration and 404 errors issues [closed]
- URL rewriting with custom user meta “/%shop_name%/gallery/%gallery%”
- Custom Rewrite Rules
- URL Rewrite with Custom Variables
- htaccess rewrite, adding segment to url
- Rewrite /category/cars into /topics/cars
- show ALL latest posts with archive.php on example.com/latest
- Url rewrite with htaccess
- Add extra optional text to permalink e.g. “-with-*”
- change url for portfolio image
- Hidden permalink different from displayed permalink
- How to add Search URL parameters to a Page Template Page for Custom Post Type
- Passing a variable to hyperlink text?
- Display categorised url
- Blog List Page 404 With Custom Post Type Rewriting to Blog Parent
- URL rewrite results in a 404, but everything should work!
- Custom URL scheme – paramters on custom post type
- Rewrite function
- My wordpress site must be being affected by outside sources [duplicate]
- How to Setup 2 Domains on a Single WordPress (Regions Filter)?