The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
http://website.com login works http://www.website.com doesn't
How do I properly setup my site URL so that a user can type either http://website.com or http://www.website.com and still login either way.
IDK if I made myself clear on that post (in a rush ATM), tell me if I wasn't. |
#2
|
||||
|
||||
Redirect to www (htaccess redirect)
Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] Please REPLACE domain.com and www.newdomain.com with your actual domain name. Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled. http://www.webconfs.com/how-to-redirect-a-webpage.php |
#3
|
|||
|
|||
Alright, so I guess that means there isn't a way to do it via vB. Thanks. If this doesn't work I'll just make a PHP script that redirects to the URL with the WWW included if it's missing from the URL.
|
#4
|
||||
|
||||
There is actually a mod that does this - try a search. Or, set your cookie domain to ".yoursite.com" (no quotes, but note the period at the beginning).
|
#5
|
|||
|
|||
Ahhhh okay. I think the cookie way is the proper way to do that. Thanks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|