i have recently put together a new site (theme and drupal install) in a root/drupal

Now i have the site working, i wanted to have the subdirectory as the web directory (dreamhost automatic redirection: where users get taken to on typing the domain name).

As i have the settings.php (config file) pointed to the subdomain, i thought i could just change the path to the root and this would be ok.

Alas, no (am i naive on this?).

The links to the database are fine (i.e the content shows up), but the themes do not work...

I have searched the forums/handbook/etc and all i seem to come across are details about moving the files to the root - and problems with this!

For another site, i have the same set-up (installed in root/drupal and the subdirectory as the web directory) and it works fine. I did not mod this site prior to having set up as the web directory...

any suggestions or experiences?

[am using 4.7 RC3]

Comments

dmitrig01’s picture

see my post: http://drupal.org/node/55742.
::::::::::::::::::::::::::
My opinion of drupal:
The best of the best
What I have to say about drupal:

Drupal, my hero

::::::::::::::::::::::::::

avolve’s picture

i do not completely follow...

I am not after multi-sites and do not have drupal in a sub-directory - rather a sub-folder. I want dreamhost, via its webpanel, to automatically redirect to the subfolder /drupal

--> the /drupal becomes viewed as

site.com and not site.com/drupal

When i changed this and also the settpings.php (config file) to remove the /drupal (as with my other site that already had the automatic redirect - before i worked on it) the site stopped functioning correctly - as in it could access the database but not locate the themes.

Following your command (i am not sure what the -s does: i a newish to unix/command line), assuming i can interchange directories, this is what it would be

ln -s /drupal /drupal

which does not change anything...

I think my issue is either a dreamhost thing or it has something to do with internal drupal setting - that is where i am stuck

any thoughts?

avolve designs | ethical by design

benthere’s picture

Because DreamHost allows you to have directories above the web root, and you just want your drupal install to be at the root (no /drupal in URL), why don't you just move drupal to the root?

Then you can move whatever else you wanted to keep to outside of the webroot, in a different directory, or a different subdomain.

So DH is setup like this:

/home/username/
--example.com/
----drupal/
------[your drupal files]
----otherstuff/
------[your other files]
--sub.example.com/

Change it to:

/home/username/
--example.com/
----[your drupal files]
--sub.example.com/
----[your other files]

Is there a reason I'm not seeing that you need both your drupal files and other files publically accessible from a subdirectory of your main domain's webroot?

-- Ben // profilefx.com

avolve’s picture

it makes perfect sense!

I will try and move it all across...

let's hope when i change the settings.php file the themes will work!

i have no idea why they don't given the current situation?

Thank you.

will try soon (heading out) and let you know the result. :)

avolve designs | ethical by design