The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
It's personal preference, really. I personally prefer the "www" version.
|
#3
|
|||
|
|||
Thanks, i guess ill stick with that. I guess it does look nicer.
Thanks |
#4
|
||||
|
||||
I seriously prefer non-www
|
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
Quote:
But .htaccess does handle this problem very well with a really simple rewrite rule. |
#7
|
|||
|
|||
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.
|
#8
|
||||
|
||||
@snakes, I think i am getting confused
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. |
#9
|
|||
|
|||
Quote:
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. |
#10
|
||||
|
||||
ah okay.. thanks for the info.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|