unfortunately, no the rest of the site should only appear under mysite.com, not mysite.com/home.
crazy, I know.
(I think this affects the second post on this, as well)
Shari L. Halter Web Programmer, Corporate Services Thornton Tomasetti 51 Madison Avenue New York, NY 10010 T 917.661.7800 F 917.661.7801 D 917.661.7970 SHalter@ThorntonTomasetti.com
_____
From: Metzler, David [mailto:metzlerd@evergreen.edu] Sent: Friday, November 10, 2006 4:26 PM To: support@drupal.org Subject: Re: [support] Change to home page location
Are all the pages in the drupal site going to have /home in front of them or was the idea that only the entry page of drupal needed a to be at /home?
You shouldn't need (nor would I recommend) two copies of the drupal distro files. The /files permissions problem is probably because it's root and it's looking for mysite.com/files when you want it to find mysite.com/home/files or the other way around. The permisssions error may just be indicating that the file doesn't exist?
If all drupal content needs to be accessed from mysite.com/home then I'd recommend that you only keep the copy there.
Also, this may be slightly different depending on whether clean urls are enalbed or no....
Dave
_____
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Halter, Shari Sent: Friday, November 10, 2006 11:21 AM To: support@drupal.org Subject: [support] Change to home page location
I have a site, call it mysite.com.
My site lives in the following directory on a Debian linux server: /export/devhome/mysite.com/htdocs. Drupal was installed here. It ran fine.
Administration deemed, after the site was in place, that site home page needed to be changed to http://mysite.com/home http://mysite.com/home, rather than http://mysite.com http://mysite.com. (The URL MUST appear exactly this way) So I made a directory, /home, under htdocs. [I've been told by our sysadmin that Apache mod_rewrite, symbolic linking and other server redirect methods wouldn't work].
My home page would initially not run here (complained first about includes, then modules) so I had to make a separate copy of mostly everything (includes, modules, misc, etc. everything except for database) in htdocs and duplicate it in /home. It now works fine, from both locations.
The $base_url was left, in sites/mysite.com/settings.php, as http://mysite.com http://mysite.com.
Questions/issues:
1. Is it really necessary to have those Drupal files in both locations (htdocs and htdocs/home)?
2. My "Administer" -> "Settings" page in Drupal is complaining that it no longer has access or permissions in the /file directory, despite my having used chmod 755 . to adjust permissions on the directory and the files within.
Thanks, Shari
Shari L. Halter Web Programmer, Corporate Services Thornton Tomasetti 51 Madison Avenue New York, NY 10010 T 917.661.7800 F 917.661.7801 D 917.661.7970 SHalter@ThorntonTomasetti.com
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> The information in this email and any attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended addressee, please notify the sender immediately, and delete this message. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> The information in this email and any attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended addressee, please notify the sender immediately, and delete this message. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
unfortunately, no the rest of the site should only appear under mysite.com, not mysite.com/home.
In that case roll everything back, if you can, to before you started copying things (if the original is working, maybe you can just delete the home directory).
Then enable the path module and edit the page you use as your home page, and give it the URL alias "home"
If you have a blog-style front page, a URL alias home for <front> might be possible...
- ben
member, Agaric Design Collective http://AgaricDesign.com - "Open Source Web Development"
person, People Who Give a Damn http://pwgd.org - "building the infrastructure for a network of everyone"
On 11/10/06, Halter, Shari SHalter@thorntontomasetti.com wrote:
unfortunately, no the rest of the site should only appear under mysite.com, not mysite.com/home.
crazy, I know.
I thought of this too, but wouldn't all the home links in breadcrumb and such still point to www.mysite.com, which is not what is wanted. Want home link to link to /home. Without mod_rewrite to change www.mysite.com requests into www.mysite.com/home requests (presumably because something else resides there), this is a tough situation to handle.
Greg
_____
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Benjamin Melançon Sent: Friday, November 10, 2006 4:23 PM To: support@drupal.org Subject: Re: [support] Change to home page location
unfortunately, no the rest of the site should only appear under mysite.com http://mysite.com/ , not mysite.com/home.
In that case roll everything back, if you can, to before you started copying things (if the original is working, maybe you can just delete the home directory).
Then enable the path module and edit the page you use as your home page, and give it the URL alias "home"
If you have a blog-style front page, a URL alias home for <front> might be possible...
- ben
member, Agaric Design Collective http://AgaricDesign.com - "Open Source Web Development"
person, People Who Give a Damn http://pwgd.org - "building the infrastructure for a network of everyone"
On 11/10/06, Halter, Shari <SHalter@thorntontomasetti.com mailto:SHalter@thorntontomasetti.com > wrote:
unfortunately, no the rest of the site should only appear under mysite.com, not mysite.com/home.
crazy, I know.
Let me make sure I understand. Your sysadmin insists that http://mysite.com/ be nothing, and that http://mysite.com/home be what everything thinks is the home page?
Step one, get a new sysadmin because this one is dumb. :-)
When that fails, alias your front page (whatever it is) to the path "home". Yes, all <front> links (such as breadcrumbs) will still point to an empty path, because that's the way it's supposed to work. You could probably write a module to auto-forward path '' to path "home" fairly easily (hook_init(), probably?). I don't know of an existing way to do that, but that's probably how I'd go about it given silly constraints like that (unless it's because you have some sort of flash ad at your web root, in which case the sysadmin should be shot for wanting a flash ad as a front page for a site in the first place).
On Friday 10 November 2006 21:56, Greg SBC wrote:
I thought of this too, but wouldn't all the home links in breadcrumb and such still point to www.mysite.com, which is not what is wanted. Want home link to link to /home. Without mod_rewrite to change www.mysite.com requests into www.mysite.com/home requests (presumably because something else resides there), this is a tough situation to handle.
Greg
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Benjamin Melançon Sent: Friday, November 10, 2006 4:23 PM To: support@drupal.org Subject: Re: [support] Change to home page location
unfortunately, no the rest of the site should only appear under mysite.com http://mysite.com/ , not mysite.com/home.
In that case roll everything back, if you can, to before you started copying things (if the original is working, maybe you can just delete the home directory).
Then enable the path module and edit the page you use as your home page, and give it the URL alias "home"
If you have a blog-style front page, a URL alias home for <front> might be possible...
- ben
member, Agaric Design Collective http://AgaricDesign.com - "Open Source Web Development"
person, People Who Give a Damn http://pwgd.org - "building the infrastructure for a network of everyone"
On 11/10/06, Halter, Shari <SHalter@thorntontomasetti.com mailto:SHalter@thorntontomasetti.com > wrote:
unfortunately, no the rest of the site should only appear under mysite.com, not mysite.com/home.
crazy, I know.
On 11/11/06, Larry Garfield larry@garfieldtech.com wrote: (snip)
Yes, all <front> links (such as breadcrumbs) will still point to an empty path, because that's the way it's supposed to work. You could probably write a module to auto-forward path '' to path "home" fairly easily (hook_init(), probably?). I don't know of an existing way to do that, but that's probably how I'd go about it given silly constraints like that
(snip)
I have notice that the front page module has a "redirect" option which says: "*REDIRECT* will automatically redirect visitors [...] to a specific page specified in the REDIRECT TO box." There is also a "redirect" option for the breadcrumb. Never tried it, so I don't know whether it does the trick.