Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-10-09 08:55:33

Gallex
Member
Registered: 2006-10-08
Posts: 1,315

clean urls with Microsoft-IIS/7.0 server

is it to difficult to get clean urls work with Microsoft-IIS/7.0 server?

Offline

#2 2012-06-22 15:23:00

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: clean urls with Microsoft-IIS/7.0 server

nobody knows nothing about this..?

Offline

#3 2012-06-22 16:01:41

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: clean urls with Microsoft-IIS/7.0 server

Looking into this myself yesterday. Any tips or info would be of great help on a project I’m currently working on for a client on IIS.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2012-06-22 17:03:33

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: clean urls with Microsoft-IIS/7.0 server

so in this article is a little help.

you have to install & regsiter IsapiRewrite4.dll on the server and instead of the .htaccess you need a IIRF.ini file in your root directory.

in my basic installation this is its content

# IsapiRewrite4.ini
#
# ini file for the ISAPI rewriter. 
#
# This one tests the stripping of paths from the requested URL 
# 
# Tue, 11 Jul 2006  01:49
#
RewriteLogLevel 5
StatusInquiry ON
#
# This ini file illustrates the use of RewriteCond to redirect 
# requests arriving for differenthosts, into different 
# subdirectories.

RewriteRule /about/(\d+)/(.*) /index.php\?id=$1
RewriteRule /about(/*)$ /index.php\?s=about
RewriteRule /about/\?c=(.*) /index.php\?s=about\&c=$1

RewriteRule /articles/(\d+)/(.*) /index.php\?id=$1
RewriteRule /articles(/*)$ /index.php\?s=articles
RewriteRule /articles/\?c=(.*) /index.php\?s=articles\&c=$1

watch for the section, dont ask me why, but each section has to have its own condition. at least this is how it works over here right now..
if someone has a dynamic condition, post it here plz!

Offline

Board footer

Powered by FluxBB