My customer had his site built in a subdirectory so that everything is addressed as "www.example.com/c". I'd like to move it all up to the root directory, which is simple. But this is a long time B2B site, so I'm going to guess that there are a lot of bookmarks floating around for his customers. Can .htaccess be used to remove the "c" from the URL? If so, how? I'm already planning to use it to require the "www".
Nancy
Seems like http://drupal.org/project/path_redirect could help
Carl Wiedemann Website design and development consulting carl.wiedemann@gmail.com | skype: c4rlww
You can try this link, it might help - https://my.bluehost.com/cgi/help/347?step=347 Talks of the same thing you are talking about.
On Mon, Sep 12, 2011 at 8:40 AM, Carl Wiedemann carl.wiedemann@gmail.comwrote:
Seems like http://drupal.org/project/path_redirect could help
Carl Wiedemann Website design and development consulting carl.wiedemann@gmail.com | skype: c4rlww
-- [ Drupal support list | http://lists.drupal.org/ ]
I think that's backwards from what I want. I am moving the current site (subdirectory) to an entirely new host (the old host does not have PHP5). While there would be no problem recreating the directory, I would rather not. This article looks like it's translating INTO a subdirectory, rather than OUT.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Vaibhav Jain
You can try this link, it might help - https://my.bluehost.com/cgi/help/347?step=347 Talks of the same thing you are talking about.
Nancy,
The following should do what you want:
Redirect /cc/ http://example.com/
This redirects requests like: http://example.com/cc/whatever.html to http://example.com/whatever.html
I put these into httpd.conf. Have not tried it in .htaccess.
Ursula
On Mon, Sep 12, 2011 at 7:14 AM, Ms. Nancy Wichmann nan_wich@bellsouth.netwrote:
I think that's backwards from what I want. I am moving the current site (subdirectory) to an entirely new host (the old host does not have PHP5). While there would be no problem recreating the directory, I would rather not. This article looks like it's translating INTO a subdirectory, rather than OUT.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* Vaibhav Jain
You can try this link, it might help - https://my.bluehost.com/cgi/help/347?step=347 Talks of the same thing you are talking about.
-- [ Drupal support list | http://lists.drupal.org/ ]
Ursula Pieper wrote:
Nancy,
The following should do what you want:
Redirect /cc/ http://example.com/
This redirects requests like: http://example.com/cc/whatever.html to http://example.com/whatever.html
I put these into httpd.conf. Have not tried it in .htaccess.
Or write a module whose purpose is to drupal_goto when arg(0) == 'cc' in a hook_boot implementation.