Answer the question
In order to leave comments, you need to log in
How to create a subdomain for a WordPress page?
I have a domain running WordPress. You need to make subdomains for certain pages, blog and wordpress store. I wrote in .htaccess
RewriteCond %{REQUEST_URI} ^/(shop|blog)/
RewriteRule ^([^/]*)/(.*)$ http://$1.example.com/$2 [R=301,L]
Answer the question
In order to leave comments, you need to log in
If it's site.com/subsite/
Then for site.com/blog (on Wp)
Did this
in .htaccess
# BEGIN WordPress
RewriteEngine On
RewriteBase /subsite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME } !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subsite/index.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question