Citrix Systems 9.2 Network Router User Manual


 
A
PPENDIX
E
Migration of Apache mod_rewrite Rules to
Advanced Policies
The Apache HTTP Server provides an engine known as mod_rewrite for
rewriting HTTP request URLs. If you migrate the mod_rewrite rules from
Apache to the NetScaler, you boost back-end server performance. In addition,
because the NetScaler typically load balances multiple (sometimes thousands of)
Web servers, after migrating the rules to the NetScaler you will have a single
point of control for these rules.
This appendix provides examples of mod_rewrite functions, and translations of
these functions into Rewrite and Responder policies on the NetScaler.
In This Appendix
Converting URL Variations into Canonical URLs
Converting Host Name Variations to Canonical Host Names
Moving a Document Root
Moving Home Directories to a New Web Server
Working with Structured Home Directories
Redirecting Invalid URLs to Other Web Servers
Rewriting a URL Based on Time
Redirecting to a New File Name (Invisible to the User)
Redirecting to New File Name (User-Visible URL)
Accommodating Browser Dependent Content
Blocking Access by Robots
Blocking Access to Inline Images
Creating Extensionless Links
Redirecting a Working URI to a New Format
Ensuring That a Secure Server Is Used for Selected Pages