turkerm
04-25-2006, 10:00 PM
With this very simple hack (It's simple because there are only 2 minor code changes)
You can:
Make the archive pages redirect to the original thread, which is very good for search engines
Make your URLs SEOed in HTML format without making big modifications, so that the spiders can easily crawl your pages
ADVANTAGES
+ The bots will crawl more pages, more easily, more efficiently, as your URLs will be SEOed thus being easily spiderable .
And it may effect your rankings in the results positively.
+ Your visitors coming from search engines will not see the low-quality archive pages. They will see the real pages.
INSTALLATION
1) Edit your /archive/index.php as explained:
Find this code:
"t-$thread[threadid].html\">
Replace it with this one:
"../../thread$thread[threadid].html\">
2) In your Forum's directory find the .htaccess file and add the following lines:
RewriteEngine on
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
THAT'S ALL!
***
Known incapabilities:
* As it's a fast and easy hack, These SEOed URLs don't include other pages of your threads Only first pages are SEOed. If you want it to include, you can find the required hack here: http://www.daniweb.com/techtalkforums/thread35147.html
* Google may see your non html and html threads, which will index, as duplicate content, which you can solve by installing the hack I mentioned above.
***
If you like it and find helpful, don't forget to click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=114153)
LIVE DEMO is here (with the hack I mentioned) : http://www.yaziyaz.com/forum/archive/index.php
Enjoy!
You can:
Make the archive pages redirect to the original thread, which is very good for search engines
Make your URLs SEOed in HTML format without making big modifications, so that the spiders can easily crawl your pages
ADVANTAGES
+ The bots will crawl more pages, more easily, more efficiently, as your URLs will be SEOed thus being easily spiderable .
And it may effect your rankings in the results positively.
+ Your visitors coming from search engines will not see the low-quality archive pages. They will see the real pages.
INSTALLATION
1) Edit your /archive/index.php as explained:
Find this code:
"t-$thread[threadid].html\">
Replace it with this one:
"../../thread$thread[threadid].html\">
2) In your Forum's directory find the .htaccess file and add the following lines:
RewriteEngine on
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
THAT'S ALL!
***
Known incapabilities:
* As it's a fast and easy hack, These SEOed URLs don't include other pages of your threads Only first pages are SEOed. If you want it to include, you can find the required hack here: http://www.daniweb.com/techtalkforums/thread35147.html
* Google may see your non html and html threads, which will index, as duplicate content, which you can solve by installing the hack I mentioned above.
***
If you like it and find helpful, don't forget to click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=114153)
LIVE DEMO is here (with the hack I mentioned) : http://www.yaziyaz.com/forum/archive/index.php
Enjoy!