Windows 2008 Forums
   Support, discussions, tips and tricks for the Microsoft Windows 2008 operating system
    Register FAQ  •  Search  •  Login     
It is currently Thu Sep 09, 2010 10:28 am

All times are UTC






Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Share your ISAPI rewrite rules
PostPosted: Tue Mar 17, 2009 9:50 pm 
Offline
Site Admin
User avatar

Joined: Mon Feb 09, 2009 1:31 pm
Posts: 122
Location: Newport, South Wales
If you have a useful ISAPI rewrite rule then share it here


 Profile  
Bookmark and Share
 Post subject: Re: Share your ISAPI rewrite rules
PostPosted: Tue Mar 17, 2009 9:57 pm 
Offline
Site Admin
User avatar

Joined: Mon Feb 09, 2009 1:31 pm
Posts: 122
Location: Newport, South Wales
Here are the rules I use for PHPBB

Code:
Rewriterule ^(.+)-f([0-9]*).html-(.+)$      /viewforum.php?f=$2
Rewriterule ^(.+)-(t|p)([0-9]*).html-(.+)$      /viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html-(.+)$   /viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html-(.+)$   /viewtopic.php?$2=$3&start=$4&$5

Rewriterule ^(.+)-f([0-9]*).html$         /viewforum.php?f=$2
Rewriterule ^(.+)-(t|p)([0-9]*).html$         /viewtopic.php?$2=$3&$4
Rewriterule ^(.+)-f([0-9]*)s([0-9]*).html$      /viewforum.php?f=$2&start=$3&$4
Rewriterule ^(.+)-(t|p)([0-9]*)s([0-9]*).html$      /viewtopic.php?$2=$3&start=$4&$5


This does, of course, assume that you have the PHPBB SEO Mod installed :)

_________________
Dave Webb
Windows 2008 Forums


 Profile  
Bookmark and Share
 Post subject: Re: Share your ISAPI rewrite rules
PostPosted: Wed Mar 18, 2009 11:04 am 
Offline

Joined: Wed Feb 11, 2009 8:36 pm
Posts: 7
Location: Brighton
Here are the ISAPI Rewrite rules I use for CMS Made Simple:

Code:
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
RewriteRule ^/([^/]+)\.html index.php?page=$1 [I]
RewriteRule ^/([^/]+)/([^/]+)\.html index.php?page=$2 [I]
RewriteRule ^/([^/]+)/([^/]+)([0-9]*)\.html index.php?page=$1/$2$3 [I]
RewriteRule ^/([^/]+)/([0-9]*)/([0-9]*)\.html index.php?page=$1/$2/$3 [I]


 Profile  
Bookmark and Share
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Site hosted in the UK by A2Z Computing Ltd