Map a page to a subdomain in wordpress -
i'm trying map specific page subdomain in wordpress.
for example, have wordpress page: www.mysite.com/mypage
i want when enters mypage.mysite.com content of www.mysite.com/mypage shows (not redirect).
can't find way this.
i've tried rewrite rules in .htaccess file no luck.
i tried this:
rewritecond %{http_host} mypage.mysite.com rewriterule ^(.*)$ http://mysite.com/mypage$1 [r=301,l]
but redirects instead of invisible showing content of page.
is possible achieve subdomain?
i've tried solutions i've found here no luck.
many thanks.
[r] @ way. [r=301,l] means redirect permanent new location.
try using reverse proxy
rewritecond %{http_host} mypage.mysite.com rewriterule ^(.*)$ http://mysite.com/mypage$1 [p]
Comments
Post a Comment