View Full Version : Problem with domain
Alexey?
05-16-2009, 05:18 PM
i have a problem with my domain
and i want to do when user goes on http://xxxx.com its redirect to http://www.xxxx.com
My control panel is Direct admin in the host (maby it can help).
Lynne
05-16-2009, 05:33 PM
Do a search for .htaccess in this forum. This subject has been brought up, and answered, many times lately.
EagleNick
05-16-2009, 09:13 PM
Put this in the .htaccess file of your root:
###### Redirect / to www ######
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
#########################Replace example.com with your domain.
Alexey?
05-17-2009, 03:33 AM
it should be like this
###### Redirect / to www ######
RewriteCond %{HTTP_HOST} !^www\.xxxx\.co.il
RewriteRule (.*) http://www.xxxx.co.il/$1 [R=301,L]
#########################
or
###### Redirect / to www ######
RewriteCond %{HTTP_HOST} !^www.xxxx.co.il
RewriteRule (.*) http://www.xxxx.co.il/$1 [R=301,L]
#########################
xxxx it just an exapmle to my domain
EagleNick
05-17-2009, 12:12 PM
it should be like this
or
xxxx it just an exapmle to my domain
Is the first one not identical to the one I posted?
Alexey?
05-17-2009, 03:42 PM
so in the first one i only need change the xxxx to my own domain and this is it?
EagleNick
05-17-2009, 03:47 PM
so in the first one i only need change the xxxx to my own domain and this is it?
Yes, and the .co.il part. I'd just use the one I posted. If it doesn't work (for some odd reason) then try one of the other ones.
Lynne
05-17-2009, 04:02 PM
Isn't this your thread also - i have a problem with www (https://vborg.vbsupport.ru/showthread.php?t=212845) ? This problem was already discussed, and you said solved, so why are you bringing it up again in a new thread?
Alexey?
05-18-2009, 09:08 AM
yes,it is but after a few hours people started say to me that my forum isnt working so i opend this thread but now i know what was the problem so i can fix it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.