User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Existing Scripts section within the Web Development category of DaniWeb, a massive community of 422,971 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,898 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Existing Scripts advertiser: Web Code Converter

vBulletin mod_rewrite for vB 3.0.7

Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,900
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 118
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite for vB 3.0.7

  #4  
Apr 30th, 2005
I recently realized that you must be a logged in member in order to download the above attachments. And I do understand that not everyone wishes to register on DaniWeb (tear). The reason I attached the files is because they're rather lengthy and it's easy to just download them and then upload them to your web-server as is. However, for those of you who are unable to do that because you are not registered, the code is available here:

The first is the .htaccess file

[html]Options +FollowSymLinks
RewriteEngine on
RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^forum([0-9]+)-([0-9]+)-(.*)-(.*)-([0-9]+)-(.*).html$ forumdisplay.php?f=$1&page=$2&sort=$3&order=$4&pp=$5&daysprune=$6 [L]
RewriteRule ^announcement([0-9]+).html$ announcement.php?f=$1 [L]
RewriteRule ^announcement([0-9]+)-([0-9]+).html$ announcement.php?f=$1&announcementid=$2 [L]
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^thread([0-9]+)-(.*).html$ showthread.php?t=$1&highlight=$2 [L]
RewriteRule ^nextnewesttothread([0-9]+).html$ showthread.php?t=$1&goto=nextnewest [L]
RewriteRule ^nextoldesttothread([0-9]+).html$ showthread.php?t=$1&goto=nextoldest [L]
RewriteRule ^threadnav([0-9]+)-([0-9]+).html$ showthread.php?t=$1&page=$2&pp=$3 [L]
RewriteRule ^threadnav([0-9]+)-([0-9]+)-([0-9]+).html$ showthread.php?t=$1&page=$2&pp=$3 [L]
RewriteRule ^threadnav([0-9]+)-([0-9]+)-([0-9]+)-(.*).html$ showthread.php?t=$1&page=$2&pp=$3&highlight=$4 [L]
RewriteRule ^threadmode([0-9]+)-linear.html$ showthread.php?t=$1&mode=linear [L]
RewriteRule ^threadmode([0-9]+)-hybrid.html$ showthread.php?t=$1&mode=hybrid [L]
RewriteRule ^threadmode([0-9]+)-threaded.html$ showthread.php?t=$1&mode=threaded [L]
RewriteRule ^threadmode([0-9]+)-linear-(.*).html$ showthread.php?t=$1&highlight=$2&mode=linear [L]
RewriteRule ^threadmode([0-9]+)-hybrid-(.*).html$ showthread.php?t=$1&highlight=$2&mode=hybrid [L]
RewriteRule ^threadmode([0-9]+)-threaded-(.*).html$ showthread.php?t=$1&highlight=$2&mode=threaded [L]
RewriteRule ^post([0-9]+).html$ showthread.php?p=$1
RewriteRule ^post([0-9]+)-([0-9]+).html$ showpost.php?p=$1&postcount=$2 [L]
RewriteRule ^post([0-9]+)-([0-9]+)-([0-9]+)-(.*).html$ showthread.php?p=$1&page=$2&pp=$3&highlight=$4 [L]
RewriteRule ^threadedpost([0-9]+).html$ showthread.php?p=$1 [L]
RewriteRule ^threadedpost([0-9]+)-(.*).html$ showthread.php?p=$1&highlight=$2 [L]
RewriteRule ^postmode([0-9]+)-linear-(.*).html$ showthread.php?p=$1&highlight=$2&mode=linear [L]
RewriteRule ^postmode([0-9]+)-hybrid-(.*).html$ showthread.php?p=$1&highlight=$2&mode=hybrid [L]
RewriteRule ^postmode([0-9]+)-threaded-(.*).html$ showthread.php?p=$1&highlight=$2&mode=threaded [L]
RewriteRule ^postmode([0-9]+)-(.*).html$ showthread.php?p=$1&mode=$2 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+)-(.*).html$ showthread.php?goto=lastpost&t=$1&highlight=$2 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L][/html]
Reply With Quote  
All times are GMT -4. The time now is 3:07 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC