https://issues.apache.org/bugzilla/show_bug.cgi?id=51933
Bug #: 51933
Summary: Apply RewriteCond to RewriteBase, allow multiple
RewriteBase by regexp
Product: Apache httpd-2
Version: 2.3.12-beta
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: mod_rewrite
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Having RewriteCond apply to a following RewriteBase combined with regular
expressions or lists for RewriteBase allows the same .htaccess file to be
used on development, test and live environments.
Assuming this is not otherwise possible, here is an example of purpose:
RewriteCond would allow to check for the url or server name to determine
the appropriate environment. For example, the development machine uses
http://localhost/domain.com/foo/, whereas the live environment would
use http://domain.com/foo/, resulting in two different RewriteBase values.
Ofcourse, this can be handled by build systems, but scripted websites
typically don't require those.
Thanks in advance!
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]