The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Redirecting non-www to www on forum links
There are numerous examples on the net and I tried to use some of them. Here is the latest I used
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain\.com$ RewriteRule (.*)$ http://www.yourdomain.com/$1 [R=301,L] vb.org has it working correctly here. I want it always show www in my links. thanks |
#2
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=222898" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=222898</a>
|
#3
|
||||
|
||||
there is a modification here that will do what you are looking for.
|
#4
|
||||
|
||||
You mean the one I just posted a link to? LOL
|
#5
|
||||
|
||||
yeah, we both posted at the same time..lol
|
#6
|
||||
|
||||
I know, I was just giving you a hard time
|
#7
|
|||
|
|||
Thanks for the quick replies, you guys
I knew about that mod but i'm curious why we can't do this in .htaccess since it's more flexible, powerful. I'm looking for some .htaccess code that will accomplish what the mod does, basically. |
#8
|
||||
|
||||
Not sure if this will work, but its what I used to use and its SLIGHTLY different the code you used, but try...
Code:
RewriteEngine On rewritecond %{http_host} ^yourdomain.com rewriteRule ^(.*) http://www.yourdomain.com/$1 [R=301,L] |
#9
|
|||
|
|||
I tried that version too and it works for the main page but as soon as i have some subdirectory in the link as in the example in my first post, it does not work.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|