httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47344] New: [FEATURE REQUEST] New "Redirect" argument to UseCanonicalName
Date Wed, 10 Jun 2009 12:44:43 GMT

           Summary: [FEATURE REQUEST] New "Redirect" argument to
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

I'd like a new argument to UseCanonicalName. The current syntax of
UseCanonicalName is:

UseCanonicalName On|Off|DNS

I'd like a fourth option, 'Redirect', which would do the same thing as:

RewriteRule (.*) http://$SERVERNAME/$1 [R,L]

That is, any request that's received on a ServerAlias will be immediately
redirected to the canonical ServerName value.

The justifications for this are numerous, from preserving the right hostname in
cookies, to ensuring the right hostname for SSL certificates, to the eternal
(if occasionally misguided) quest for SEO brownie points.

This also goes under the general heading of my quest to see mod_rewrite become
unnecessary except for the gravest situations. :-)

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message