Domain name will not work without "WWW"

Lapan

New member
Joined
Apr 23, 2014
Messages
6
Points
0
Who read my other thread knew that I've had problems with hosting.
Well, its solved, at least I can add domain name now.
But, I have problem with accessing domain, so I openned this new thread.

Without "www" it will not work.
Maybe it needs time, I don't know, so I ask.


Here are settings for newly added domain.
Code:
<VirtualHost xxx.xx.xx.xxx:xx>
ServerAdmin  [email protected]
DocumentRoot /hsphere/local/home/user/lapan.com.ba
ServerName   lapan.com.ba


ServerAlias dxxxxxxx.uxxx.com.ba www .lapan.com.ba

Use UserGroup user user


Use php 5
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ScriptAlias /cgi-bin	"/hsphere/local/home/user/lapan.com.ba/cgi-bin"



<DIRECTORY /hsphere/local/home/user/lapan.com.ba>
OPTIONS  Indexes ExecCGI FollowSymLinks
AllowOverride All
</DIRECTORY>
IndexOptions FancyIndexing
</VirtualHost>
Two A records:
*.lapan.com.ba - data: myipadress
lapan.com.ba - data: myipadress

Is this configuration right, and do I have to only wait for DNS to update?

Note: There is no space between www and full stop in www .lapan.com.ba
 
Last edited:

Jack London

New member
Joined
Jul 9, 2012
Messages
386
Points
0
Using htaccess to redirect non-www urls to www
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^your-domain\.com [NC]
RewriteRule (.*) http://www.your-domain.com/$1 [R=301,L]
Now when you enter yourdomain.com and all pages in your domain.com then it will redirect to www.domain .com automatically.
Hope it helps!
 

Lapan

New member
Joined
Apr 23, 2014
Messages
6
Points
0
Seriously, is my hosting making me a fool?
How come video.lapan.com.ba working, and lapan.com.ba does not without www prefix?

:blink:
 

Warren76

New member
Joined
Jun 7, 2014
Messages
38
Points
0
Typically, the webmaster's control console should have a setting to allow traffic to automatically be directed to your name without using the "www." prefix.
 
Last edited:

NicholasK

New member
Joined
Jun 8, 2014
Messages
50
Points
0
You can also set prefix redirect from WordPress general settings.
 
Older threads
Replies
8
Views
3,945
Replies
12
Views
5,690
Replies
2
Views
2,235
Replies
4
Views
2,945
Replies
6
Views
6,255
Newer threads
Replies
17
Views
6,388
Replies
0
Views
2,133
Replies
2
Views
2,535
Replies
35
Views
13,164
Latest threads
Hi
Replies
1
Views
94
Replies
1
Views
96
Replies
1
Views
87
Recommended threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top