How to add www in front?

Status
Not open for further replies.

mw229x10

New Member
Messages
3
Reaction score
0
Points
1
Hi all, my domain works only without www in front, anyone know how to solve this?

I tried to change .htaccess but still not working.

The code I change as below,

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

The code is working when I tried on other web hosting but not in x10hosting.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
my domain works only without www in front

should be no need to do anything ( I just did a test on my domain with www )
###

add [ RewriteBase / ] under [ RewriteEngine on ]
###

how did you setup your domain ?
###
 

mw229x10

New Member
Messages
3
Reaction score
0
Points
1
After add [ RewriteBase / ] still the same, it did redirect with "www" but with error "404 Page not found".

I bought my domain from other website and change the name server.
 

mw229x10

New Member
Messages
3
Reaction score
0
Points
1
It come with 6 months free web hosting when I bought the domain but I deleted and use x10hosting instead.

I setup the website by addon in x10hosting, is that correct?
 
Last edited:

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
Status
Not open for further replies.
Top