Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: How to convert IIS attribute rewrite rules to htacces rules? |
|
Author |
|
CharlieChang
Joined: 24 Jan 2017 Posts: 1
|
Posted: Wed 25 Jan '17 17:24 Post subject: How to convert IIS attribute rewrite rules to htacces rules? |
|
|
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: 7373 Location: Germany, Next to Hamburg
|
Posted: Thu 26 Jan '17 13:58 Post subject: |
|
|
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 |
|
|
|
|
|
|