vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Problem with domain (https://vborg.vbsupport.ru/showthread.php?t=213860)

Alexey? 05-16-2009 05:18 PM

Problem with domain
 
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:

Code:

###### 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
Quote:

###### Redirect / to www ######
RewriteCond %{HTTP_HOST} !^www\.xxxx\.co.il
RewriteRule (.*) http://www.xxxx.co.il/$1 [R=301,L]
#########################


or

Quote:

###### 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

Quote:

Originally Posted by Alexey? (Post 1812217)
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

Quote:

Originally Posted by Alexey? (Post 1812452)
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 ? 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.


All times are GMT. The time now is 06:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete