htaccess file combined with DNS only hosting

Web hosting discussion, programming, and shared and dedicated servers.
6 posts Page 1 of 1
by punmaster » Tue Jun 25, 2013 5:55 pm
Can I use an htaccess file combined with DNS only hosting to point to a webpage on a different site? For example, I want music.com to point to drums.com/music.html
by thulsa_doom » Tue Jun 25, 2013 6:58 pm
To directly use a .htaccess file, some form of web hosting would have to be set up so our server would know to even try to read that file.

That said, you can point web traffic for a dns-only hosted domain using the redirect option in our member tools at https://members.sonic.net/websites/hosting/type/
John Fitzgerald
Sonic Technical Support
by punmaster » Tue Jun 25, 2013 8:49 pm
Thats not the problem. I already have another value hosting account at another domain. Since I discontinued one of my value hosting plans with a certain domain name, I have created a stand alone HTML doc that I'm hosting on my web site. But now with the other domain name changed to a DNS only account, I want the ability for people to type in that old domain name/URL and have it link directly to that specific HTML doc on my web site. Not the home page....but a page on that site.
by thulsa_doom » Tue Jun 25, 2013 10:42 pm
Totally doable through the tool I linked above. I just tested with a domain I own (with DNS-only hosting), pointing it to http://sonic.net/fusion/ and it worked like a charm.
John Fitzgerald
Sonic Technical Support
by clairet » Fri Jun 28, 2013 10:29 am
What I believe he needs is a domain pointing to a specific html file such as http://sonic.net/fusion/fusion.html. Member tools only allows a redirect to point to a directory and not a specific file. I believe an htaccess file is needed to do this but from what you said, he may need hosting for that on his DNS-only domain. Is that true?
Claire T.
Sonic.net Technical Support
by thulsa_doom » Fri Jun 28, 2013 1:03 pm
clairet wrote:What I believe he needs is a domain pointing to a specific html file such as http://sonic.net/fusion/fusion.html. Member tools only allows a redirect to point to a directory and not a specific file.
That sounds about right. This could be remedied on the target end more readily than on the redirect side. In this case, move music.com/drums.html to music.com/drums/index.html, then point drums.com to music.com/drums/ and you're in business.

There are other ways to peel this onion without getting drums.com its own hosting service, like pointing drums.com to music.com/drums/ and putting a .htaccess redirect (or rewrite) on music.com to make that land on music.com/drums.html, but your mileage may vary.
John Fitzgerald
Sonic Technical Support
6 posts Page 1 of 1

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 1 guest