• 2010
  • Nov
  • 28

Apache - mod_rewrite in action

Last week I came across an interesting set of requirements for our new web server configuration.
If finally gave me a reason to work my way through mod_rewrite.

I identified 4 different requirements to satisfy:

1. All calls to www.sap-imagineering.com/X needed to be forwarded to the corresponding page on SCN.
e.g. http://www.sap-imagineering.com/No+Hands+SAP had to forward to http://wiki.sdn.sap.com/wiki/display/Img/No+Hands+SAP

2. Calls to user home directories created using mod_userdir had to be left alone since user directories where to be supported (In general every call containing a “~” is considered a call to a user directory)
[Read More…]