Hi I have a website on wordpress which have 2 pages which I meant to convert it to subdomain.
Eg: Let my website at be http://www.domain.com
there are two pages http://www.domain.com/page1 and http://www.domain.com/page2
I want them to be accessible at http://page1.domain.com & http://page2.domain.com respectively.
Also I have may subpages to page1 which i wanna access using subdomain of main page. I mean if http://www.domain.com/page1/subpage1 is subpage of http://www.domain.com/page1 then I want to access it as http://page1.domain.com/subpage1
I have already created subdomains in cpanel pointing them to root folder of my website and tried following htaccess.
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^subsite\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/subsite [NC]
RewriteRule ^(.*)$ /subsite/$1 [L]
I have tried different other variants of htaccess code I got from different forums and also www.stackoverflow.com
Also tried WP Subdomains (Revisited) plugin and found of no use.
Please help me to fix it.