Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
reres is on a distinguished road
 
Posts: 8
Join Date: Apr 2012
Default Literal path to website - 04-11-2012, 02:08 AM

I have had a VERY hard time getting a simple website up and unfortunately 000webhost support doesn't read more than the 1st line of a submitted ticket.

We cannot and do not want to use the 000webhost name servers.
We DO want to simply point our website via an Alias to our website hosted at 000webhost.

What would be the literal path to our website?

The CPanel states:
Server Name:server22.000webhost.com
Home Root /home/a3138665

I created a Website Coming Soon index.html file
I placed it in the public_html folder

I have tried:
http://server22.000webhost.com/
http://server22.000webhost.com/home
http://server22.000webhost.com/home/a31386655

No matter what I try I cannot get the site to show up. Once we find out the literal path I can then create an CName and A Record to point our true www.company.com to the above path and it should work, but what is that path?

Thanks for ANY help here.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
mopedmaniac's Avatar
Senior Member
mopedmaniac is on a distinguished road
 
Posts: 453
Join Date: Dec 2010
Location: Wales, UK
Send a message via Skype™ to mopedmaniac
Default 04-11-2012, 02:38 PM

There isn't a path you can use, you can however just create an A record and point it to the IP address of the 000webhost server listed in your control panel.
I take it you created the 000webhost account stating your domain name is company.com, if so just create the A record. If you have selected a sub-domain, then also park your domain in the 000webhost control panel.

You also have to create an www. CNAME record pointing to company.com in your domain control panel.



Use the coupon code 000webhost at checkout to receive a 25% discount for life on paid hosting packages!



If I have helped you, click the Karma button
Reply With Quote
(#3 (permalink))
Old
Junior Member
reres is on a distinguished road
 
Posts: 8
Join Date: Apr 2012
Default Update - 04-11-2012, 02:55 PM

Thanks very much for the help. To follow up.

1. We did indeed create our 000Webhost.com account with our already registered domain name.

2. In the MS Office 365 (Our current email/web/DNS provider) I created an A record, with the IP of our 000webhost server provided in the CPanel.

Example: A -> www -> 31.170.160.86 -> 1 Hour

3. Tested and worked as is.


I didn't need to create a CName and I am not very savvy with DNS, so not sure if this will be a problem?


Thanks for the help!
Reply With Quote
(#4 (permalink))
Old
Junior Member
reres is on a distinguished road
 
Posts: 8
Join Date: Apr 2012
Default 04-11-2012, 04:56 PM

I found a problem that I believe MopedManiac was hinting at but I am not quite sure how to correct.

www.company.com works fine in a web browser.
company.com errors out and doesn't go anywhere in a web browser.

Do I need to create a DNS record so that if someone uses a web browser and accidentally or on purpose types company.com it will know to go to www.company.com?

Is this an @ record?

Thanks for any assistance on this again.
Reply With Quote
(#5 (permalink))
Old
mopedmaniac's Avatar
Senior Member
mopedmaniac is on a distinguished road
 
Posts: 453
Join Date: Dec 2010
Location: Wales, UK
Send a message via Skype™ to mopedmaniac
Default 04-11-2012, 05:02 PM

Your DNS should laid out like this...
You have an A record for company.com pointing to 000webhost IP
You have a CNAME record www. pointing to company.com

The chain of DNS events looks like this (happens in split second)
company.com ----> 000webhost
www.company.com ----> company.com ----> 000webhost

If your dont have a CNAME option, what options do you have?



Use the coupon code 000webhost at checkout to receive a 25% discount for life on paid hosting packages!



If I have helped you, click the Karma button

Last edited by mopedmaniac; 04-11-2012 at 05:04 PM.
Reply With Quote
(#6 (permalink))
Old
Junior Member
reres is on a distinguished road
 
Posts: 8
Join Date: Apr 2012
Default 04-11-2012, 05:15 PM

I see how that goes, and with your information I have created the correct CName. I was under the impression that you could only have one or the other pointing to the same place, but your excellent information makes perfect sense.

Creating first the A record and then Aliases to those A records afterwards.

Thanks again for the help! This has been a great DNS lesson for me and much appreciated!
Reply With Quote
(#7 (permalink))
Old
mopedmaniac's Avatar
Senior Member
mopedmaniac is on a distinguished road
 
Posts: 453
Join Date: Dec 2010
Location: Wales, UK
Send a message via Skype™ to mopedmaniac
Default 04-11-2012, 05:17 PM

No problem, if you need any other help just ask. You may even drop me a private message if you prefer it.



Use the coupon code 000webhost at checkout to receive a 25% discount for life on paid hosting packages!



If I have helped you, click the Karma button
Reply With Quote
(#8 (permalink))
Old
Junior Member
reres is on a distinguished road
 
Posts: 8
Join Date: Apr 2012
Default 04-11-2012, 06:24 PM

Looks like I still have a problem, and while a PM is ok i like to post here in case others have a similar problem.

Anyways, I thought I had this working but it was a cached copy. Let me post my DNS entries and see if you notice an error.
*I altered the actual domain name so as not to broadcast our website here.

A -> www -> 31.170.160.86 -> 1 Hour
CNAME -> company -> www.company.com -> 1 Hour

So when I do the www.company.com that is working great, no issues.
The company.com which we had hoped in a browser to go to www.company.com is still not working. I am not sure what I have done wrong.

Thanks again!
Reply With Quote
(#9 (permalink))
Old
mopedmaniac's Avatar
Senior Member
mopedmaniac is on a distinguished road
 
Posts: 453
Join Date: Dec 2010
Location: Wales, UK
Send a message via Skype™ to mopedmaniac
Default 04-11-2012, 06:28 PM

company.com > A record > 31.170.168.86
www > CNAME > company.com

I think you got them the wrong way around, this is the correct way



Use the coupon code 000webhost at checkout to receive a 25% discount for life on paid hosting packages!



If I have helped you, click the Karma button
Reply With Quote
(#10 (permalink))
Old
Mate's Avatar
Senior Member
Mate is on a distinguished road
 
Posts: 395
Join Date: Apr 2012
Location: Middle England
Default 04-11-2012, 06:35 PM

@ reres:

You cannot use DNS to force a redirect from example.com to www.example.com

This is best done server-side using .htaccess, but that's off-topic.

Last edited by Mate; 04-11-2012 at 06:38 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com