• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Redirect subdomain/path to main domain name

Question

kiddingguy    50

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?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.