Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: httpd.ini incl. php en excl. html Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
seelemann
Newbie
Newbie


Joined: 25 June 2009
Online Status: Offline
Posts: 4
Posted: 25 June 2009 at 10:23am | IP Logged Quote seelemann

My drupal website uses isapi rewrite 2.
I wanted clean url's so I made a httpd.ini file.
This files works for php, but my html pages aren't displayed anymore.

How can I rewrite my httpd.ini files, so it shows both php and html pages?

My httpd.ini file looks like this:

===========================================

[ISAPI_Rewrite]
# Accept a url with the following directories and pass them through unchanged.
RewriteRule /(?:misc|files|modules|themes|sites|uploads)/(.*) $0 [I,L]

# Make URLs sane
RewriteRule /cron\.php $0 [I,L]
RewriteRule /index\.php.* $0 [I,L]
RewriteRule /update\.php.* $0 [I,L]
RewriteRule /xmlrpc\.php $0 [I,L]

# deactivate following line if "robotstxt" module is installed
#RewriteRule /robots\.txt.* $0 [I,L]

RewriteRule /(.*)\?(.*) /index.php\?q=$1&$2 [I,L]
RewriteRule /(.*) /index.php\?q=$1 [I,L]

===========================================
Back to Top View seelemann's Profile Search for other posts by seelemann
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8054
Posted: 27 June 2009 at 1:28pm | IP Logged Quote Lexey

Show sample working (php) and non-working (html) URIs, please.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
seelemann
Newbie
Newbie


Joined: 25 June 2009
Online Status: Offline
Posts: 4
Posted: 28 June 2009 at 2:34pm | IP Logged Quote seelemann

Well I've renamed the httpd.ini, so the html works.

http://deheerenvanaemstel.nl/index.html is html.
The http://deheerenvanaemstel.nl/index.php doens't show.

If I name the httpd.ini correct, the php works and the html doesn't show.

The php is form my drupal install.
Back to Top View seelemann's Profile Search for other posts by seelemann
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8054
Posted: 29 June 2009 at 6:17am | IP Logged Quote Lexey

Try to add the following rule just after the "
# Make URLs sane" line:

RewriteRule [^.?]+\.html(?:\?.*)? $0 [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
seelemann
Newbie
Newbie


Joined: 25 June 2009
Online Status: Offline
Posts: 4
Posted: 29 June 2009 at 8:20am | IP Logged Quote seelemann

Thanks, I tried it but it doesn't seem to work.
Is there something else I can do to make it work?
Back to Top View seelemann's Profile Search for other posts by seelemann
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8054
Posted: 30 June 2009 at 5:55am | IP Logged Quote Lexey

Show a new httpd.ini (with the given rule), a non-working test URL and a corresponding IIS log record, please.
Back to Top View Lexey's Profile Search for other posts by Lexey
 
seelemann
Newbie
Newbie


Joined: 25 June 2009
Online Status: Offline
Posts: 4
Posted: 01 July 2009 at 9:49am | IP Logged Quote seelemann

new httpd.ini (with the given rule):

[ISAPI_Rewrite]
# Accept a url with the following directories and pass them through unchanged.
RewriteRule /(?:misc|files|modules|themes|sites|uploads)/(.*) $0 [I,L]

# Make URLs sane
RewriteRule /cron\.php $0 [I,L]
RewriteRule /index\.php.* $0 [I,L]
RewriteRule /update\.php.* $0 [I,L]
RewriteRule /xmlrpc\.php $0 [I,L]
RewriteRule [^.?]+\.html(?:\?.*)? $0 [I,L]

# deactivate following line if "robotstxt" module is installed
#RewriteRule /robots\.txt.* $0 [I,L]

RewriteRule /(.*)\?(.*) /index.php\?q=$1&$2 [I,L]
RewriteRule /(.*) /index.php\?q=$1 [I,L]


a non-working test URL:
http://www.deheerenvanaemstel.nl/index.html

a corresponding IIS log record
I don't know what that is and where I can find it. Looked it op with google without result. What do you mean with it?

Back to Top View seelemann's Profile Search for other posts by seelemann
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 8054
Posted: 02 July 2009 at 5:47am | IP Logged Quote Lexey

Config looks fine.

Quote:
I don't know what that is and where I can find it.


Read IIS documentation about logging. By default IIS log files are being stored in the %SISTEM32%\Log directory.
Back to Top View Lexey's Profile Search for other posts by Lexey
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum