vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   With www or without..Please help (https://vborg.vbsupport.ru/showthread.php?t=210119)

kronnos 04-02-2009 09:51 AM

With www or without..Please help
 
I just realized i should not be letting my forum have 2 different domain. exp: www.myforum.com and myforum.com.

I know I should set up a htaccess file to direct one to the other so both are not active at the same time but which is usually preferred? Will this effects anything I have on the site? For example attachments errors or anything else?

Thank You

Dismounted 04-02-2009 10:05 AM

It's personal preference, really. I personally prefer the "www" version.

kronnos 04-02-2009 10:19 AM

Thanks, i guess ill stick with that. I guess it does look nicer.

Thanks

veenuisthebest 04-02-2009 02:48 PM

I seriously prefer non-www

nexialys 04-02-2009 03:09 PM

it's not a preference actually (like if the web was based on personal preferences)

Google is checking first if a mysite.com exists... if not, www.mysite.com is checked out and then google say it's impossible to find.

your server is supposed to manage www. calls, so it redirect to your site in the /public_html/ path. if you have no /www/ ALIAS directory below your /public_html/, ou can ask your webmaster to make one... (it's simply a alias of the /public_html/ path!)

.htaccess files are not handling the situation very well, just replacing the www. but that cause a sub-domain to be used and your site may have cookies problems if it is done.

veenuisthebest 04-02-2009 03:16 PM

Quote:

.htaccess files are not handling the situation very well, just replacing the www. but that cause a sub-domain to be used and your site may have cookies problems if it is done.
and that is why it is important to have a redirect from one version to another, in order to eliminate the cookies problem.

But .htaccess does handle this problem very well with a really simple rewrite rule.

snakes1100 04-02-2009 03:58 PM

I dont normally agree with Nexi, but he is correct, the alias should be setup via apache, not using the htaccess approach and then symlink the www dir to the public_html directory, less work for apache than the htaccess rewrites, do to apache having to scan every time for a htaccess rule as the file exists.

veenuisthebest 04-02-2009 04:11 PM

@snakes, I think i am getting confused :p

By default, I always see www and non-www pointing to public_html folder. I never had to create an alias just for pointing www and non-www point to one location. I guess it depends on type of hosting. Doesn't happen on shared as its pretty much setup already.

By htaccess rewrite I meant, using JUST one version of domain i.e. either www or non-www in order to prevent problems like duplicate content and cookies. For example, I setup non-www as preferred choice in htaccess then a user would be directed to non-www version always, doesn't matter if he enter www in the url.

snakes1100 04-02-2009 04:34 PM

Quote:

Originally Posted by veenuisthebest (Post 1782496)
@snakes, I think i am getting confused :p

By default, I always see www and non-www pointing to public_html folder. I never had to create an alias just for pointing www and non-www point to one location. I guess it depends on type of hosting. Doesn't happen on shared as its pretty much setup already.

By htaccess rewrite I meant, using JUST one version of domain i.e. either www or non-www in order to prevent problems like duplicate content and cookies. For example, I setup non-www as preferred choice in htaccess then a user would be directed to non-www version always, doesn't matter if he enter www in the url.


Thats because your servers running whm/cpanel and it did it for you when you set up your domain on the server, thats why you have a sym linked dir named www when you ftp into your domain.

www and non www is not duplicate content, its the same content.

veenuisthebest 04-02-2009 04:59 PM

ah okay.. thanks for the info. :)

snakes1100 04-02-2009 05:31 PM

your welcome

kronnos 04-02-2009 07:28 PM

Quote:

Originally Posted by nexialys (Post 1782443)
it's not a preference actually (like if the web was based on personal preferences)

Google is checking first if a mysite.com exists... if not, www.mysite.com is checked out and then google say it's impossible to find.

your server is supposed to manage www. calls, so it redirect to your site in the /public_html/ path. if you have no /www/ ALIAS directory below your /public_html/, ou can ask your webmaster to make one... (it's simply a alias of the /public_html/ path!)

.htaccess files are not handling the situation very well, just replacing the www. but that cause a sub-domain to be used and your site may have cookies problems if it is done.

Ahha, so google searched for the non-www version first? So maybe they prefer the non-www version?

Anyway, what exactly should i ask my host to do to make the changes so I do not have to use the htaccess to make it non-www or www version?

Would they understand what im talking about if I ask them "the alias should be setup via apache, and then symlink the www dir to the public_html directory"? Lol, because i have no idea what that means. Also, how to I ask to make it non-www or www in the alias?

Thank You

motowebmaster 04-02-2009 11:07 PM

I force the 'www' via an apache directive, but it also helps to include it in your vb general settings under the Site Name / URL / Contact Details section.

Also check your templates and ensure that they, and anything else you add to your site, uses the same URL. Sometimes custom templates are a problem.

It's possible to do it via .htaccess, but you might have to remember to re-edit it in the future if you did an upgrade.

TECK 04-05-2009 11:33 AM

Does Google display the www? ;)
I think they are worth to have their setup trusted...

nexialys 04-05-2009 12:29 PM

google will check the www. after the domain because of the old technique... but if i remember the writings in the InternetII (which is not the Web 2.0), the www. will be dropped in the next years because it indicate purely that we're on the web and nobody ever use if for it's real purpose anymore...

btw, kronnos, you have it right with the simlink... alias is simlink.

Solo Drakban 04-09-2009 12:12 AM

www is unnecessary, but why not just support both? Just set the cookies via the admincp to set for your entire domain and then you can use www, not use www or use fuzzynavel. as the hostname.

motowebmaster 04-09-2009 02:48 AM

I agree that www may become considered needless in coming years, but it helps me separate an actual website from it's supporting resources.

The reason why you wouldn't want to support both is that search engines may index the same page twice, with and without the www, which affects the importance/relevancy of the respective content. For example, a page that provides how-to information may compete with an alternative URL from your site elsewhere in the same search engine. If you force the URL (either way), then it is likely to be indexed with one URL and all of the traffic results go to the single respective URL.


All times are GMT. The time now is 03:28 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.01014 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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