I have a domain and I have products for sale in various categories. The permalinks look like mydomain.com/product-category/categoryname which I think is too cumbersome for most
Can I use a subdomain to point to an existing page on my domain?
I have a domain and I have products for sale in various categories. The permalinks look like mydomain.com/product-category/categoryname which I think is too cumbersome for most
Yes you can but it is not simple and if there re a lot of redirects will mean lots of coding. The way to do this is setup a redirect in the .htaccess file. It will be something like
RewriteEngine On
RewriteCond %{HTTP_HOST} ^answers\.mydomain\.com$ [NC]
RewriteRule ^ http://mydomain.com/cat1 [L,R]
This will divert all answers.mydomain to mydomain/cat1
Can you not set up a custom permalink that is /
Thank you for your answer. In doing a bit more research I realize that the fact that I am using woocommerce plugin makes a difference to how the permalinks work. I have found a plugin for woocommerce to create subdomains for product categories so I will look into this more to see if this will do what I want.
See more comments
Yes you can but it is not simple and if there re a lot of redirects will mean lots of coding. The way to do this is setup a redirect in the .htaccess file. It will be something like
RewriteEngine On
RewriteCond %{HTTP_HOST} ^answers\.mydomain\.com$ [NC]
RewriteRule ^ http://mydomain.com/cat1 [L,R]
This will divert all answers.mydomain to mydomain/cat1
Can you not set up a custom permalink that is /
Thank you for your answer. In doing a bit more research I realize that the fact that I am using woocommerce plugin makes a difference to how the permalinks work. I have found a plugin for woocommerce to create subdomains for product categories so I will look into this more to see if this will do what I want.