vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Spider Friendly URL's with IIS. (https://vborg.vbsupport.ru/showthread.php?t=47597)

cobradude 01-10-2003 10:00 PM

Spider Friendly URL's with IIS.
 
This is borrowed heavily from fastforwards spider friendly hack https://vborg.vbsupport.ru/showthrea...hlight=spider.

For those of you using IIS, you'll find that mod_rewrite and .htaccess are not options for you. Well, the same functionality is available for IIS.

First, you'll need to install ISAPI_rewrite from http://www.isapirewrite.com/ (there's a free version). If you don't administer the server, you'll need to ask the admin to install.

After the rewrite dll is installed, it's a piece of cake from there by following the instructions attached.

Additionally, I installed the following hack so that I can have non members (including search engines) view the forums in the friendly fashion, and all members

see the true links. https://vborg.vbsupport.ru/showthrea...ghlight=styles

I'll do what I can to support this, but I am sure a lot of folks here can add to this or modify it to be even better. It has been working great for me. A good site to view is fastforwards site at http://dbforums.com/

AWS 01-11-2003 05:49 PM

I'll be giving this a whirl on my devel box and if it works as well as fastforwards I will migrate to IIS.

cobradude 01-11-2003 08:39 PM

Great, let me know how it goes.

cobradude 01-18-2003 05:38 PM

Anyone have any feedback on this?

AWS 01-19-2003 05:48 PM

I haven't had the time to get this installed. I am in the middle of moving my servers to a new T3 that I just had installed.

I will get this up as soon as the move is done.

nuno 01-19-2003 06:41 PM

Working fine with IIS6.0.

cobradude 01-21-2003 04:05 AM

Thanks guys.

cobradude 02-08-2003 05:14 AM

Google has been crawling deeply off and on all day long on the two sites I did this to (never crawled passed the index before).....rewriting is cool! :)

cobradude 02-08-2003 07:16 PM

Just included some of the enhancements for multiple page threads and forums found here: https://vborg.vbsupport.ru/showthrea...137#post348137

For me, I added the following two rules for isapirewrite to accommodate the multiple pages...

RewriteRule /t(\d+)--(\d+)\.html$ /forums/showthread.php\?threadid=$1&pagenumber=$3 [I]
RewriteRule /f(\d+)-(\d+)\.html$ /forums/forumdisplay.php\?forumid=$1&daysprune=1000&sortor der=&sortfield=lastpost&perpage=25&pagenumber=$2 [I]

cobradude 02-16-2003 03:43 AM

Well, here's my current list of rules which also take into account all of the mods in the link above (see my previous post). It seems like every time I turn around there's more rules I must add because someone reports a broken link or something (especially with the modifications for multiple pages, etc), but everything is pretty well sorted, and google has been giving a lot of love to both of my sites over the last couple weeks. Anyone else having success with this?

Quote:

RewriteRule /f(\d+)/s /forums/forumdisplay.php\?forumid=$1 [L]
RewriteRule /t(\d+)/s\.html /forums/showthread.php\?threadid=$1 [L]
RewriteRule /s /forums/index.php
RewriteRule /f(\d+)/forumdisplay.php\?=s&forumid=(\d+) /index.php [L]
RewriteRule /t\d+/(forumdisplay.php.*) /forums/$1 [L]
RewriteRule /t\d+/(attachments.php.*) /forums/$1 [L]
RewriteRule /f\d+/(showthread.php.*) /forums/$1 [L]
RewriteRule /f\d+/(forumdisplay.php.*) /forums/$1 [L]
RewriteRule /f\d+/(attachments.php.*) /forums/$1 [L]
RewriteRule /f\d+/(index.php.*) /forums/$1 [L]

RewriteRule /forumdisplay.php\?=s&forumid=(\d+) /index.php
RewriteRule /(forumdisplay.php.*) /forums/$1 [L]
RewriteRule /(attachments.php.*) /forums/$1 [L]
RewriteRule /(showthread.php.*) /forums/$1 [L]
RewriteRule /(forumdisplay.php.*) /forums/$1 [L]
RewriteRule /(attachments.php.*) /forums/$1 [L]
RewriteRule /(newthread.php.*) /forums/$1 [L]
RewriteRule /(newreply.php.*) /forums/$1 [L]
RewriteRule /(memberlist.php.*) /forums/$1 [L]
RewriteRule /(search.php.*) /forums/$1 [L]
RewriteRule /f(\d+)\.html /forums/forumdisplay.php\?forumid=$1 [L]
RewriteRule /t(\d+)\.html /forums/showthread.php\?threadid=$1 [L]
RewriteRule /forum.html /forums/index.php [L]

RewriteRule /archive.html /archive.php [L]


RewriteRule /t(\d+)--(\d+)\.html$ /forums/showthread.php\?threadid=$1&pagenumber=$3 [L]
RewriteRule /t(\d+)-(\d+)-(\d+)\.html$ /forums/showthread.php\?threadid=$1&pagenumber=$3 [L]
RewriteRule /f(\d+)-(\d+)\.html$ /forums/forumdisplay.php\?forumid=$1&daysprune=1000&sortor der=&sortfield=lastpost&perpage=25&pagenumber=$2 [L]

RewriteRule /forums/t(\d+)-(\d+)&pagenumber=(\d+) /forums/showthread.php\?threadid=$1&pagenumber=$3 [L]
RewriteRule /forums/f(\d+)&pagenumber=(\d+) /forums/forumdisplay.php\?forumid=$1&pagenumber=$2 [L]


RewriteRule /forums/t(\d+)-(\d+)--(\w*)-&pagenumber=(\d+) /forums/showthread.php\?threadid=$1&highlight=$3&pagenumbe r=$4 [L]


All times are GMT. The time now is 02:45 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02295 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete