![]() |
Enforce www preference in URL
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 |
In .htaccess
Code:
<IfModule mod_rewrite.c> |
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 |
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 |
FRDS
Well not everyone runs apache ... |
Quote:
|
Try this
In .htaccess Code:
<IfModule mod_rewrite.c> |
I have choose to add into Plugins Manager and works correctly with BBURL vBulletin variable:
init_startup PHP Code:
Regards. |
All times are GMT. The time now is 08:40 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|