Map a page to a subdomain in wordpress

I’m trying to map a specific page to a subdomain in wordpress.

For example, I have this wordpress page: www.mysite.com/mypage

I want that when someone enters mypage.mysite.com the content of www.mysite.com/mypage shows (not with a redirect).

Can’t find a way to do this.

I’ve already tried with Rewrite rules in .htaccess file with no luck.

I tried something like this:

#RewriteCond %{HTTP_HOST} mypage.mysite.com
#RewriteRule ^(.*)$ http://mysite.com/mypage$1 [R=301,L]

But this redirects instead of invisible showing the content of the page.

Is this possible to achieve with a subdomain?

Many thanks.

You have a R=301 flag issuing a redirect. Did you try that without the R=301 flag?

I’m not sure if what you want to do is possible because Wordpress itself does its own rewriting. I know you can rewrite a subdomain request to a PHP script as some do with wildcard subdomains. Try getting rid of the “R=301,” part and see how that works first.

Yes, I have tried with and without the R=301.

I have a plugin that converts all categories to subdomains automatically, but can’t manage to use some pages as subdomains.

Thanks.