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]

SloppyGoat 03-15-2003 12:55 AM

Kick ass! I'll definitely be trying this soon! Any new comments or discoveries before I do? What about stealth forums? Do they show?

SloppyGoat 09-20-2003 10:14 PM

Could someone please elaborate a bit more for me? I've installed this, and basically copied Cobra's httpd.ini, but nothing's working yet. I'm doing something wrong, obviously. :(

Could you please post your entire httpd.ini file (or is that it above?), so I can take a look? I'm not clear on exactly what needs to go in it.

Actually, a little more step by step process would be much appreciated, if you'd be so kind. Can this work with both url types, once it's done? Or will everyone have to be informed of the new url? Quite frankly, this scares me a bit. :nervous:

gmarik 11-09-2003 01:49 PM

Does this work on:
1) Apache
2) vB 2.3.2 ?


All times are GMT. The time now is 05:44 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
  • Page Generation 0.01444 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)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete