Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Spider friendly URLs Details »
Spider friendly URLs
Mod Version: 1.00, by fastforward (Member) fastforward is offline
Developer Last Online: Nov 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 35
Released: 25 May 2001 Last Update: Never Downloads: 15
Not Supported  

For vB 2.0

This little hackette is a quick fix to allow search engine bots to spider your threads.

Although this will allow the bots to index every thread on your site, it will not make the threads 'search engine optimized'. They will see exactly what you see when you visit your site. It simply removes the CGI bits from the URL's which prevents most search engine bots from spidering more than one level deep.

If you want a hack that allows to fully customize how the thread will look to the search engine bot, you should look at Overgrows more complete hack here.

The advantage of this hack over Overgrows is that it does not require htaccess support which can have performance issues. This could also be seen as a disadvantage though as my hack requires that you have mod_rewrite enabled on your Apache Server, whereas Overgrows method should work with just about any web host out there.

Take yer pick

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 25 May 2001, 06:45
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
got a demo/example url for us ?
__________________
Reply With Quote
  #3  
Old 25 May 2001, 13:36
fastforward fastforward is offline
 
Join Date: Oct 2001
Originally posted by eva2000
got a demo/example url for us ?
http://dbforums.com

You can see the forum links on the front page are like :

http://dbforums.com/f5/s



and the threads are like:

http://dbforums.com/t44153/s.html
__________________
BritishExpats.com - (British expatriate community)
Reply With Quote
  #4  
Old 25 May 2001, 16:17
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Hey very cool.. I haven't looked at the code yet, but nice job.

One note though: The main point of my hack is getting Google to the archives, not really friendly URLs.. that was just a sidenote. The archiving is what I'm after.
__________________
Marijuana Growing Magazine - since vB 1.1
Reply With Quote
  #5  
Old 26 May 2001, 00:06
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
yeah cool but do normal showthreads and forumdisplay urls still work ?

i.e would a url like http://animeboards.com/forumdisplay.php?s=&forumid=2 still work as well as

http://animeboards.com/f2/s ?
__________________
Reply With Quote
  #6  
Old 26 May 2001, 00:27
fastforward fastforward is offline
 
Join Date: Oct 2001
Originally posted by eva2000
yeah cool but do normal showthreads and forumdisplay urls still work ?

i.e would a url like http://animeboards.com/forumdisplay.php?s=&forumid=2 still work as well as

http://animeboards.com/f2/s ?
hehe. Oh ye of little faith

Yeah they do.

The only urls that are trapped by the mod_rewrite directives are ones that match one of these three expressions:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

ie.
/f234/s or /f234/s345345detr3
/t2343/s.html or /t2343/s435345.html
/s/ or /s435345345dfsdf/

Actually I need to clarify in the docs that this assumes your forums are in the web root. Those directives should be prefixed with /forums/ or wherever if your vB is installed elsewhere.
__________________
BritishExpats.com - (British expatriate community)
Reply With Quote
  #7  
Old 26 May 2001, 00:28
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
cool.. yet another hack i'm gonna add hehe
__________________
Reply With Quote
  #8  
Old 26 May 2001, 00:30
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
oh wait any problems you can see running both overgrow's search engine spidering hack and yours together ? i also use htacess to use mod_rewrite to prevent hot linking of my forum images
__________________
Reply With Quote
  #9  
Old 26 May 2001, 02:04
fastforward fastforward is offline
 
Join Date: Oct 2001
Originally posted by eva2000
oh wait any problems you can see running both overgrow's search engine spidering hack and yours together ? i also use htacess to use mod_rewrite to prevent hot linking of my forum images
No problems at all. I just installed Overgrows

http://dbforums.com/archive/

I did make one change to Overgrows though so that I wouldn't need to use .htaccess files. I deleted the .htaccess and added this to my httpd.conf:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But either method will work.
__________________
BritishExpats.com - (British expatriate community)
Reply With Quote
  #10  
Old 26 May 2001, 02:42
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Originally posted by fastforward

No problems at all. I just installed Overgrows

http://dbforums.com/archive/

I did make one change to Overgrows though so that I wouldn't need to use .htaccess files. I deleted the .htaccess and added this to my httpd.conf:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But either method will work.
okay great then
__________________
Reply With Quote
  #11  
Old 26 May 2001, 02:52
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
okay i already have mod_rewrite so what do i do for the first step something like this ?

<VirtualHost 157.238.46.185>
ServerAdmin webmaster@animeboards.net
DocumentRoot /home/usr1/public_html
BytesLog domlogs/animeboards.net-bytes_log
ServerName www.animeboards.net
ServerAlias animeboards.com *.animeboards.com
CustomLog domlogs/animeboards.net combined
ScriptAlias /cgi-bin/ /home/usr1/public_html/cgi-bin/
RewriteEngine on
RewriteRule ^/f([0-9]+)/s([^/]+?)$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L]
RewriteRule ^/s([^/])+?/$ /index.php?s=$1 [L]
</VirtualHost>
__________________
Reply With Quote
  #12  
Old 26 May 2001, 02:59
fastforward fastforward is offline
 
Join Date: Oct 2001
That's correct as long as your foums are in the web root. If not, you need to change those to something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
BritishExpats.com - (British expatriate community)
Reply With Quote
  #13  
Old 26 May 2001, 03:02
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
okay gonna implement this now hehe
__________________
Reply With Quote
  #14  
Old 26 May 2001, 03:38
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
okay installed one problem i sthe showthread links for

Go to first unread post go to

http://animeboards.com/# now
also

Admin options for

split

merge

move

stick/unstick threads all don't work

as well as view mod queue, view attachment queue etc

they are redirect to my front page since i have an htaccess for error redirects to my front page
__________________
Reply With Quote
  #15  
Old 26 May 2001, 03:51
fastforward fastforward is offline
 
Join Date: Oct 2001
Originally posted by eva2000
okay installed one problem i sthe showthread links for

Go to first unread post go to

http://animeboards.com/# now
Not sure what you mean here.
also

Admin options for

split

merge

move

stick/unstick threads all don't work

as well as view mod queue, view attachment queue etc

they are redirect to my front page since i have an htaccess for error redirects to my front page
I really can't see how the changes could in anyway affect these. You did only change the links in the forumhome and forumdisplay templates right?

The links you're talking about don't even point to pages that use these templates. they are still in their original form and point to postings.php.
__________________
BritishExpats.com - (British expatriate community)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:58.

Layout Options | Width: Wide Color: