URL Rewrite - IIS Authentication

   
trans
Home | URL Rewrite | IIS Authentication | Download | Support - Contact | Help us out
trans
About Mod_Rewrite | Documentation | Examples | New Features | Performance
trans
Untitled Document

New features on Mod_Rewrite 1.0.2

New RewriteRule options last and redirect [l|r=XXX]

With the last option you can tell the filter to stop after succesfully matching a rewriterule this way you can make sure that the rewritten URL won't be changed by the following rules
The redirect option lets you do 301 moved permanently or 302 moved temporary redirections. Example: RewriteRule ^/olddir/(.*) /newdir/$1 [r=301]

New logical operators for rewritecond [OR|AND]
Now you can create a chain of rewriteconds before matching the rewriterule.

RewriteCond HTTP_HOST site1.foo [OR]
RewriteCond HTTP_HOST site2.foo
RewriteRule ^/(.*) /$1

Check out some practical uses of mod_rewrite.

New Features on Mod_Rewrite 1.0.1

Reload Directive

As requested by many webmasters there is a new option on mod_rewrite that make it possible to do changes in the configuration file without restarting IIS.

Just adding "Reload 1000" to mod_rewrite.ini forces the filter to reload the configuration after processing 1000 URLs.

Now you can save time contacting your hosting company to restart the web server service for the new rules to take effect.

RewriteCond Directive

Sometimes being able to manage URLs is not enough and you might also want to:

- Stop bots like email extractors from browsing your site.
- Emulating virtual hosting in windows XP professional
- Stop people from linking to your files and wasting your bandwidth.

RewriteCond works with any server variable like REMOTE_ADDR, HTTP_REFERER, HTTP_USER_AGENT, HTTP_HOST

Check out some practical uses of mod_rewrite.

For a complete list of server variables and what they are for, visit w3schools

 

trans

Valid HTML 4.01! Valid CSS!