ASU Web Community

Site Redirection

Wednesday, January 23rd, 2008 - 1:01 pm
  • dhleach
  • dhleach's picture

Drupal is installed in http://yourdomainname.asu.edu/drupal

You have a .htaccess redirect at http://yourdomainname.asu.edu/ to the above directory

You want to retain the domiain root while still forwarding to the drupal directory. In otherwords, even though the content is located in a subdirectory, you want the browser to show the root of the domain. Ex:

http://yourdomainname.asu.edu/drupal = http://yourdomainname.asu.edu
http://yourdomainname.asu.edu/drupal/home = http://yourdomainname.asu.edu/home
http://yourdomainname.asu.edu/drupal/home/detail = http://yourdomainname.asu.edu/home/detail 

I would be happy at this point with just copying the contents of the CMS to the root directory, but that makes webauth throw a fit. I know it's possible, I've just not been able to get it to work properly. Also, it would help keep the site directory structure organized as there are other web apps other than drupal there.

Thursday, January 24th, 2008 - 2:30 pm
  • eftucker
  • eftucker's picture

I installed Drupal directly into the root.  After realizing how to install in, and removing the "www" Direct Admin default, it is now playing nicely with my site. I disabled "Verify on every page view" and put my homepage URL in the "callapp" field.  (http://utolabs.asu.edu.)

What problems are you finding by doing this? 

Thursday, January 24th, 2008 - 4:01 pm
  • dhleach
  • dhleach's picture

I *didn't* install drupal into the root because with the other web apps and their respective folders it would have made the root directory that much more of a mess. Also, when developing a drupal site, I've found that sometimes I'll muck things up so horrifically that the only time conscious option is to delete the install and try again. Now that I am done developing (for the time being) I am looking to keep drupal in it's current directory while getting rid of that /drupal/ in the URL.

I know it is possible... and has been done in the past. It's some trick with the .htaccess and the settings.php in the drupal sites folder... I just haven't quite figured out how to make it work right. Today I had to spend a lot of time fixing some IE6 incompatibility bugs in some of my CSS, so I haven't had time to look into it further. If I find out, I will post what I know.