Force www prefix in url
lutegrass - August 9, 2009 - 23:00
| Project: | Global Redirect |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I'd like to suggest a switch for global redirect that, if enabled, would force all requests to be http://www... . This is the same functionality provided by the .htaccess file that ships with Drupal, but it would be handier to set it in the database, especially for managing large numbers of sites with svn. It's a real pain to have to edit the .htaccess file, especially when it is modified by the core developers.
So, just a switch to ensure all requests go to "www." prefixed version of the site domain. Thanks for your consideration.

#1
I'm extending this feature request, to allow inter-subdomain redirection.
Suggested options:
to ensure sites stay accessible, you need to access the site trough the destination subdomain, and the following url's shoudn't get redirected
-
/user/loginto prevent lockout.-
/admin*(notice is generated when not in redirect target)#2
#3
I think we should leave this request as I initially posted, for simplicity sake. What you propose is useful and a good feature request -- it's just harder to implement and affects more places in core and especialy contrib modules. My original request is meant to simplify the administration of an already existing feature in .htaccess, a feature that is hard to manage when it's coded in a file like .htaccess, especially for multisites and using source control like svn and cvs. I'd suggest you open a separate feature request. I'm also switching the title of this thread back to reflect my original intent.
#4
Changing title back, again. Sorry.