htaccess - How to use slug with subdomain?

admin2025-01-07  3

I've migrated a Hubspot blog to a Wordpress site but now need to use the same subdomain that was used for the Hubspot blog on the new Wordpress site.

Hubspot url: blog.sitename/blog/post-name

Wordpress url: sitename/blog/post-name

I've worked with subdomains before by masking url's with them, however in doing so, the slug is never shown... because it's been masked.

How can I get the new Wordpress site's url to read like this:

blog.sitename/blog/post-name?

I've migrated a Hubspot blog to a Wordpress site but now need to use the same subdomain that was used for the Hubspot blog on the new Wordpress site.

Hubspot url: blog.sitename.com/blog/post-name

Wordpress url: sitename.com/blog/post-name

I've worked with subdomains before by masking url's with them, however in doing so, the slug is never shown... because it's been masked.

How can I get the new Wordpress site's url to read like this:

blog.sitename.com/blog/post-name?

Share Improve this question asked Dec 31, 2018 at 19:19 Jake StewartJake Stewart 113 bronze badges 2
  • Who is your host? – Milo Commented Jan 1, 2019 at 1:25
  • GoDaddy is the host. – Jake Stewart Commented Jan 2, 2019 at 15:45
Add a comment  | 

1 Answer 1

Reset to default 0

You can try using WP Subdomains plugin. It allows you to use Category slug, Page slug, or Author name as the subdomain name. You’ll have to configure your webserver for each subdomain you want to use. Make sure that a DNS entry has been added to point the subdomains to your server.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736265252a1031.html

最新回复(0)