The Serendipity Handbook

You can now read the (german) handbook here: PDF - https://github.com/s9y/Book (LaTeX source).

Forum-Information

Before posting about errors, make sure that the answer cannot already be found in our FAQ or by searching this forum!
Posting is restricted to registered users (registering is free and simple!) due to recent spam attacks. When having trouble with this board, contact garvin(-at)s9y(-dot)org.

Board index Installation mod_rewrite on IIS 7

Having trouble installing serendipity?
solraun
Regular
 
Posts: 6
Joined: Thu Oct 29, 2009 6:18 pm

Postby solraun » Fri Oct 30, 2009 7:14 pm

I was searching for Information, and couldn't find it. But I found out by myself, maybe this will help other unexpierienced users as me:

How do I use the Google friendly mod_rewrite function of s9y on a Windows 2008 Server?

First, make sure you have "URL Rewrite" present in your IIS Manager Home. If not, you can get it via the "Web Platform Installer"

1. Activate the "mod_rewrite" in your Administration page of serendipity.
2. This creates you a file (or modifies it) called .htaccess in you wwwroot. It contains the information used to rewrite the url
3. Load the file in the URL Rewrite module of IIS7. Select your website, doubleklick on "URL Rewrite". On the right you should find Import Rules. Klick on it, and either select your file (.htaccess) or copy&paste it into the window. It should parse every thing. If there is an error, check out the error and if necessary, delete the entries that cause the error. (I had to delete one Rewrite Base / that didnt had any information in it). If there are no more errors, you have to do one last step!
4. (Where I had troubles) Somehow, IIS7 parses other than apache. Anyway, you have to delete the "\" before every "_". This gives you
RewriteRule ^((archives/([0-9]+)-[0-9a-z\._!;,\+\-\%]+\.html)/?) index.php?/$1 [NC,L,QSA]
instead of
RewriteRule ^((archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html)/?) index.php?/$1 [NC,L,QSA]

DO THIS WITCH EVERY RULE!
Then klick on apply top right. Restart the Web Server (NOT the whole server, this is unnecesary)

Then it should work as you want.


Can i promote my site? http://www.striking.ch if you want to see some nice pictures ;)


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron