Map Page to Subdomain…
-
I’ve seen that there are a lot of posts about this already, but many have different solutions that didn’t seem to work, or were outdated.
Goal:
– (Note: wpsite.com is just a placeholder)
– Map wpsite.com/wppage to wppage.wpsite.com
– Map wpsite.com/wppage/wpsubpage to wpsubpage.wpsite.comCurrent Setup:
– Apache under Windows Server on Amazon EC2
– WordPress installation is currently configured on subdomain.wpsite.com, and will soon just become wpsite.com. So, I don’t know if testing anything would even work.
– I don’t believe that wildcards are enabled on the DNS side of things.Test .htaccess edit:
RewriteCond %{HTTP_HOST} !www.subdomain.wpsite.com$ [NC] RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).subdomain.wpsite.com [NC] RewriteRule (.*) /wppage/%2 [NC,QSA]
The topic ‘Map Page to Subdomain…’ is closed to new replies.