Page 1 of 1

htaccess file combined with DNS only hosting

Posted: Tue Jun 25, 2013 5:55 pm
by punmaster
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

Re: htaccess file combined with DNS only hosting

Posted: Tue Jun 25, 2013 6:58 pm
by thulsa_doom
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/

Re: htaccess file combined with DNS only hosting

Posted: Tue Jun 25, 2013 8:49 pm
by punmaster
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.

Re: htaccess file combined with DNS only hosting

Posted: Tue Jun 25, 2013 10:42 pm
by thulsa_doom
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.

Re: htaccess file combined with DNS only hosting

Posted: Fri Jun 28, 2013 10:29 am
by clairet
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?

Re: htaccess file combined with DNS only hosting

Posted: Fri Jun 28, 2013 1:03 pm
by thulsa_doom
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.