nystudio107 / retour

DEPRECATED Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
Other
168 stars 24 forks source link

Redirecting Subdomain to a Specific Section of the Main Site #124

Open eyekiller-hub opened 3 months ago

eyekiller-hub commented 3 months ago

Hi,

I have a question regarding subdomains. We have just launched a new website, and as part of the project, we merged our previously separate blog site with the main site. The redirects we set up in Retour for specific pages work fine, but is it possible to redirect the subdomain itself to a specific section of the site?

For example:

Our main site is http://domainname.com/, and we have integrated the blog into this main site. We have pointed https://blog.domainname.com/ to the main site, but it currently lands on the homepage. I would like it to go to http://domainname.com/blog instead.

We have successfully set up redirects for all blog posts. For instance, https://blog.domainname.com/blog/article1 correctly redirects to http://domainname.com/blog/article1

Any assistance would be greatly appreciated.

Thanks Jamie