logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How to convert IIS attribute rewrite rules to htacces rules?
Author
CharlieChang



Joined: 24 Jan 2017
Posts: 1

PostPosted: Wed 25 Jan '17 17:24    Post subject: How to convert IIS attribute rewrite rules to htacces rules? Reply with quote

I'm starting with the Apache mod_rewrite page but I still don't quite understand how to convert the following IIS attributes to Apache htaccess rules?
    matchType="IsFile"
    negate="true"
    logicalGrouping="MatchAll"
    appendQueryString="false"
    enabled="true"
    trackAllCaptures="false"


These are some the things I'm stuck at. Any help is much appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 26 Jan '17 13:58    Post subject: Reply with quote

the first one is easy.

is not file

RewriteCond %{REQUEST_FILENAME} !-f

suggestion alias example rewrite

Code:

RewriteEngine on
   RewriteBase /
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule (.*) index.php [L]
Back to top


Reply to topic   Topic: How to convert IIS attribute rewrite rules to htacces rules? View previous topic :: View next topic
Post new topic   Forum Index -> Apache