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?
Question
kiddingguy
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 comment
https://www.neowin.net/forum/topic/1340872-redirect-subdomainpath-to-main-domain-name/Share on other sites
1 answer to this question
Recommended Posts