• 0

Redirect subdomain/path to main domain name


Question

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?

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.
  • Posts

  • Recent Achievements

    • First Post
      smileyhead earned a badge
      First Post
    • One Month Later
      K V earned a badge
      One Month Later
    • Week One Done
      K V earned a badge
      Week One Done
    • Dedicated
      CarlosABC earned a badge
      Dedicated
    • One Month Later
      solidox earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      640
    2. 2
      ATLien_0
      240
    3. 3
      Xenon
      172
    4. 4
      neufuse
      155
    5. 5
      +FloatingFatMan
      123
  • Tell a friend

    Love Neowin? Tell a friend!