htaccess rules for multiple domain redirects
Budget: $15 – $25 USD
I need a hand with .htaccess rules.
I have registered a domain with a webhotel host, let's call the domain "url-redirects.com".
Several other domains, let's call them "domain1.com, domain2.com, domain3.com" are associated domains to the webhotel for "url-redirects.com", so when a user types in "domain1.com" they are served the website of "url-redirects.com".
Actually, there is no website for "url-redirects.com", there is only a .htaccess file. I need a hand with what to put in this .htaccess file.
The purpose of "url-redirects.com" is to redirect all the possible "domain1.com", "domain2.com", "domain3.com" variants to specific URLs.
So, if a user types any variant of domain1.com:
http:// or https://
with or without "www", or any other prefix for that matter
with or without "/some-folder/" or any other folder name
with or without "page.html" or any other filename
, the user will be redirected to newurl.com/somefolder.
domain2.com has a different redirect URL
domain3.com has another redirect URL
Example:
domain1.com -> newurl.com/somefolder
domain2.com -> anotherurl.net/otherfolder
domain3.com -> shorturl.com
What do I put in .htacces to achieve the 3 redirects above, with all the wildcards needed?
I have registered a domain with a webhotel host, let's call the domain "url-redirects.com".
Several other domains, let's call them "domain1.com, domain2.com, domain3.com" are associated domains to the webhotel for "url-redirects.com", so when a user types in "domain1.com" they are served the website of "url-redirects.com".
Actually, there is no website for "url-redirects.com", there is only a .htaccess file. I need a hand with what to put in this .htaccess file.
The purpose of "url-redirects.com" is to redirect all the possible "domain1.com", "domain2.com", "domain3.com" variants to specific URLs.
So, if a user types any variant of domain1.com:
http:// or https://
with or without "www", or any other prefix for that matter
with or without "/some-folder/" or any other folder name
with or without "page.html" or any other filename
, the user will be redirected to newurl.com/somefolder.
domain2.com has a different redirect URL
domain3.com has another redirect URL
Example:
domain1.com -> newurl.com/somefolder
domain2.com -> anotherurl.net/otherfolder
domain3.com -> shorturl.com
What do I put in .htacces to achieve the 3 redirects above, with all the wildcards needed?