Export (if apache rewriting is off) fix for issue #8