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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -