Rewriting a subdomain page on one WordPress installation to a parent domain on another
How can I use .htaccess
to rewrite a a page on a subdomain to a page on the parent? (E.g. people visiting mysite.com/landingpage will see the content from dev.mysite.com/landingpage)?
Ive been working to redesign a WordPress site, using a dev.mysite.com subdomain. The site isn't ready to replace the live WP site yet (mysite.com) but I need to map one of the pages to the old domain and make it public. Since all the work (template,database,etc) is on the subdomain, I can't just import the page to the old domain, so I seemingly need to use mod_rewrite
, which is way beyond my skill level.
Also, since its two different WP Installations (not multisite), would I use the domain .htaccess
file or the subdomain .htaccess
file?
Thanks!
Topic subdomains url-rewriting htaccess Wordpress
Category Web