vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=189)
-   -   Google Friendly ISAPI Rewrite for IIS (Archive Files) (https://vborg.vbsupport.ru/showthread.php?t=91243)

myMigration 06-27-2005 10:00 PM

Google Friendly ISAPI Rewrite for IIS (Archive Files)
 
Hi Guys

I just wanted to share with you my findings on using ISAPI Rewrite on IIS to get the archive links on v3.0.7 to display google friendly.

eg:

From:
http://www.domain.com/forum/archive/index.php?t-1.html

To:
http://www.domain.com/forum/archive/t-1.html

Here is how its done:

Install ISAPI Rewrite from http://www.isapirewrite.com there is a 30 day trial or a free lite version.

once installed edit the httpd.ini file and add the line:
RewriteRule /forum/archive/([^/.?]+\.html) /forum/archive/index.php\?$1 [I,L]

Now edit the index.php and global.php in the ARCHIVE FOLDER.
eg: /forum/archive/

Find and replace 'index.php?' with ''
Save both files.

Thats it - browse to your archive pages:
http://www.mydomain.com/forum/archive/

And you have very friendly google links!

NOTE: Requires Windows Server and IIS (Internet Information Services) this will not work on Apache (although there is a very good mod_mime hack to do the same thing on Apache)

Regards

myMigration

Marco van Herwaarden 06-28-2005 01:29 PM

Moved to Modification Hints and Tips.


All times are GMT. The time now is 07:54 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01134 seconds
  • Memory Usage 1,707KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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