I have a small DreamHost site powered by ExpressionEngine Core v2.5.5, and none of the path variables work, i.e. {path='template_group/template'}. For example, when I attempt to use that for a link, the browser gets directed to
http://mydomain.org/mydomain.org/index.php/template_group/template
…if I specify index page in EE general config, or if I don’t then it’s:
http://mydomain.org/mydomain.org/template_group/template
The installation for DreamHost is located in /home/username/directory/subdirectory. I select this for my web directory in my DreamHost control panel, and the content appears at http://mydomain.org and/or http://www.mydomain.org.
I’ve tried various .htaccess file set-ups, but do not really understand what I am doing, and have not yet hit on anything that works. Since the site is small, I would stick with the specifying URLs in links, but search results and 404 pages do not resolve properly and I need them to!
Any advice would be greatly appreciated!
Yes, I have looked at the General Configuration preferences. Here are my current settings: Name of your site’s index page: (blank) URL to the root directory of my site: http://mydomain.org URL to the themes folder: http://mydomain.org/themes Themes folder path: /home/username/directoryname/subdirectoryname/themes/
This works to render the site, but path variables do not resolve properly. I cannot tell if this is something about how DreamHost handles web domains. For DreamHost, sites are stored by user - in your username folder, and you specify by DreamHost control panel which domain goes with which directory. So in my DreamHost control panel, I specify Web directory for http://mydomaing.org = /home/username/directoryname/subdirectoryname/
Hello,
I run several DH sites and have never encountered this behavior.
My first suggestion would be to disable your .htaccess file and add the index.php back into your site configuration. Then make sure your path settings are all correct. Also double check your setup in DH to see if the hosting setup uses “www” or not. Make sure your settings reflect that as well.
I know in my setup: /home/username/my_domain.com/ is my web root not /home/username/my_domain.com/subdirectory
Regards,
Jim
Thanks - I do appreciate the responses. There is a subdirectory in the path because that is where the site files are. I was not the original creator of site, and there are many old versions in the username’s directory (I was asked not to delete these). So the new site is literally located at the path below, according to the DH domains control panel
Web directory: /home/username/new/home
The files are in a subdirectory called “home” in a directory called “new”. None of these folders are named according to the actual domain because there are many old versions with that domain name. To avoid confusion while working on new media, that is where we uploaded everything, and I thought I could just point DreamHost to that directory to make the new version of the site live. This did work, except the path variables/404/search result pages get an extra domain added to the front of the URL.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.