subdomain redirect

fellow - May 1, 2008 - 18:00
Project:Path Redirect
Version:6.x-1.0-beta4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi,

I use Domain Access module and want to redirect subdomain1.example.com/a1 to subdomain2.example.com/a2, what should I do? at path_redirect/new only Drupal path or path alias is allowed. If I try "from a1 to subdomain2.example.com/a2" , it redirects me from example.com/a1 not from subdomain1.example.com... Thanks!

#1

Dave Reid - January 28, 2009 - 01:49
Status:active» postponed (maintainer needs more info)

Can you please try on the latest 5.x-1.x version of the module?

#2

nirvanajyothi - July 1, 2009 - 16:34

You can do this by adding the redirect from the from the subdomain from where you wish to redirect. ie., subdomain/admin/build/path-redirect/add (instead of from example.com/admin/build/path-redirect/add)

#3

leenwebb - October 23, 2009 - 14:22
Version:5.x-1.1» 6.x-1.0-beta4

I added a redirect from abc.mysite.com/specialURL (a subdomain) but the redirect is applying to www.mysite.com/specialURL (the main domain) as well. Is there any way to have the redirect ONLY apply to the subdomain URL?

#4

jackinloadup - October 23, 2009 - 20:53

My need is slightly different then what is originally posted on this issue. I want to redirect users from devsite1.mysite.com to somesite.com

The patch below will make any of these options

devsite1.mysite.com
devsite1.mysite.com/node/*
devsite1.mysite.com/anything

and redirects it to

somesite.com

We wanted to make it so when we moved out development site live and clients who didn't update their bookmarks would get directed to the correct website.

how it works:
when adding a redirect the from field needs to be the whole subdomain path including http:// like so
http://devsite1.mysite.com/
then in the To field put the forward address like normal
http://somesite.com/

AttachmentSize
253612-subdomain_redirect.patch 1.28 KB
 
 

Drupal is a registered trademark of Dries Buytaert.