Cannot use “http://” without “www”

Questions about hosting a Website, using MySQL and PhP may be posted here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

Cannot use “http://” without “www”

Postby Zulo » Sat Mar 31, 2012 7:18 pm

Heey there

I have a DS212+ (DSM-version 4.0-2198) and would like to use it as a web station.

Unfortunately, I can only access the website if I type "http://www.domain.dk" first. I cannot get it to work if I only write "http://domain.dk". Is it not possible to access my website via both methods? If I can, how can I fix it?

I have checked my DNS (GratisDNS) and put it up for having to work with both methods.

Hope I can get some help.. Thanks :-)
Zulo
I'm New!
I'm New!
 
Posts: 6
Joined: Sat Mar 31, 2012 6:59 pm

Re: Cannot use “http://” without “www”

Postby axj » Sat Mar 31, 2012 10:14 pm

Then you have bought a domain like www.domain.dk instead of domain.dk which is not the same!
As you can see in my 'subtext' I have axj.dk as domain, but not www.domain.dk!
DS509+ 4*1TB Raid+1TB DSM 4.0-2219. Logitech BOOM+Duet 7.6.1, WebCam: Linksys WVC54GCA + TrendNet TV-IP121
DS212+ 1TB & D-Link DIR-685, HP C7280, Dell 3100cn. iPad3, Programming Pascal, Clarion 5.5, html/php. http://axj.dk
User avatar
axj
Specialist
Specialist
 
Posts: 1058
Joined: Fri Jan 02, 2009 10:59 am
Location: Esbjerg, Danmark

Re: Cannot use “http://” without “www”

Postby mike42dk » Sun Apr 01, 2012 9:20 am

Hi

If you are using gratisdns.dk, then edit the A record, so you have, yourdomain.dk -> fixed IP address, and *.yourdomain.dk -> fixed IP address. This way both www, ftp and without should work.

Remember it takes up to 4 hours before the DNS is updated.
Regards Michael

###############################################
Synology DS-412+ with DSM 4.2 3211
Westen Digital 20EFRX 2 TB. in slot 1 (format to EXT4) Basic
Seagate ST2000DL003 2 TB. in slot 2 (format to EXT4) Basic
Samsung USB2 G3 Station 2 TB. (format to EXT4)

Please don't PM for help, use forum so all users can see answers
User avatar
mike42dk
g33k
g33k
 
Posts: 1876
Joined: Sun Jun 06, 2010 7:45 am
Location: Denmark

Re: Cannot use “http://” without “www”

Postby Zulo » Sun Apr 01, 2012 12:50 pm

Hi Michael

I use GratisDNS.dk as you say.. My setting is:
Vært IP TTL
localhost.mydomain.dk --> xxx.x.x.x --> 43200
mydomain.dk --> xxx.xxx.xx.xx --> 43200
www.mydomain.dk --> xxx.xxx.xx.xx --> 43200

I will try to advice and use a *.
Zulo
I'm New!
I'm New!
 
Posts: 6
Joined: Sat Mar 31, 2012 6:59 pm

Re: Cannot use “http://” without “www”

Postby Zulo » Sun Apr 01, 2012 2:12 pm

I have solved the problem. Had to create web site twice in the "Virtual Host" on DS212 +. Both to the same folder but with different domain (one without and one with WWW).
Zulo
I'm New!
I'm New!
 
Posts: 6
Joined: Sat Mar 31, 2012 6:59 pm


Return to Web Server + PHP / MySQL

Who is online

Users browsing this forum: No registered users and 0 guests