Quote:
Originally Posted by TECK
Can you post the ISAPI Procedure? I'm interested... Thanks.
|
Sure, here's the procedure.
1. Install ISAPI Rewrite Free Version (works great if you only host 1 site on IIS)
2. In ISAPI Rewrite's httpd.ini, add the following entries:
Code:
RewriteRule /archive /archive.php
RewriteRule /archive/(.*) /archive\.php\?param=/$1
RewriteRule /forumdisplay/(.*) /forumdisplay2\.php\?param=/$1
RewriteRule /showthread/(.*) /showthread2\.php\?param=/$1
This will rewrite /archive, /forumdisplay and /showthread into it's equivilent .php files. We can't use no extension, IIS does not support that properly. This also rewrites the remainder of the URL into the query parameter "param", as IIS will display file not found if you add / after the forumdisplay and showthread urls.
3. In forumdisplay.txt and showthread.txt, replace the line :
Code:
$endbit = strrchr( $_SERVER['PHP_SELF'] , '/' );
with :
Code:
$endbit = strrchr( $HTTP_GET_VARS['param'] , '/' );
This will extract the remaining URL as a parameter since we moved it to a parameter.
4. Rename archive.txt to archive.php, forumdisplay.txt to forumdisplay2.php, and showthread.txt to showthread2.php, and copy to your live upload directory.