The Arcive of vBulletin Modifications Site. |
|
Enforce www preference in URL Details »»
|
|||||||||||||||||||||||||
Hello,
After an year I finally got some time to look at my poor board which is losing page rank in every google update. I am currently optimizing my forum, while doing this i found there was duplicate content issue in my forum. See this example http://myvbforum.com Page rank 0 http://www.myvbforum.com Page rank 2 http://www.myvbforum.com/index.php Page rank 1 You can see from above urls all have same contents but different page rank also Google consider them different urls and those cause the duplicate contents problem. In order to avoid duplicate contents issue you should add following code to your config.php on second line below this ini_set("max_execution_time", "240"); PHP Code:
Have Fun Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
In .htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
# Rewrite for including www
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*)$ http://www.yourdomain.com/$1 [L,R=301]
</IfModule>
|
|
#3
|
||||
|
||||
|
Yea, not sure why you'd do it the way you did when a simple .htaccess would do
Also, google no longer treats those pages as duplicate content as it's pretty smart these days. You should find other reasons why you're losing pagerank |
|
#4
|
|||
|
|||
|
Its just method I described it here. Its up to vb users whether they use it or not. I am just sharing it.
P.s: index.php option is missing in htaccess and I think easy way is to use htaccess |
|
#5
|
|||
|
|||
|
FRDS
Well not everyone runs apache ... |
|
#6
|
|||
|
|||
|
Cool tHanks!
|
|
#7
|
||||
|
||||
|
Try this
In .htaccess Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php http://www.yourdomain.com/ [L,R=301]
# Rewrite for including www
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*)$ http://www.yourdomain.com/$1 [L,R=301]
</IfModule>
|
|
#8
|
||||
|
||||
|
I have choose to add into Plugins Manager and works correctly with BBURL vBulletin variable:
init_startup PHP Code:
Regards. |
![]() |
|
|