Mod_rewrite rule to force use of particular domain name for a specific directory
-
I’d like to force the use a different hostname/domain name for a particular directory on my site.
Currently, there is a directory that contains several webpages at mainsite.com/directory. For the pages that reside in just that directory, I want the domain name to change in users’ address bar to differentsite.com. Ideally, the pages appear to be at the root level of differentsite.com.
What rule(s) can I add to my WordPress .htaccess file to accomplish this?
- The topic ‘Mod_rewrite rule to force use of particular domain name for a specific directory’ is closed to new replies.