• 0

Redirect subdomain/path to main domain name



An old website/server has been taken down and a new website is to be created.

However, there is no such list/sitemap of all subdomains and URL-paths, and everything has to be defined from scratch.


Is there a way (in the .htaccess) as to rewire all "known" URL-paths to the main domain?


e.g. www.123.com/qwer has to be redirected to www.123.com & abc.123.com/asd has to be redirected also to www.123.com & www.123.com/poi to - you guessed - www.123.com


Which statement/redirect/command must be given  - or .htaccess file created/altered - to accomplish this?

Link to post
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.