4

URL Display

http://drupal.org

The URL for my Drupal home page shows as http://www.mysite.com/mysite/ in the browser address bar and I would like it to show as simply http://www.mysite.com

A bit of background - my site is installed on my server in /home/public/mysite as opposed to at just in /home/public/

I have an index.php file in the /home/public/ directory with a PHP script that includes the following to point to the sub-directory

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.mysite.com/mysite/");

I have the site installed in /home/public/mysite because I use one test server and put various sites in the www directory on it in separate sub-directories IE: www/mysite and www/mysite1 and www/mysite2, etc.

If on the production server I just put the site in the home/public directory then some file references do not work and need to be changed from the test server to production server. Naturally I want to avoid that.
So what I want to know is if it is possible to keep my production site at NFSN in /home/public/mysite but have the URL in the browser show my home page as http://www.mysite.com and not http://www.mysite.com/mysite/

Is that doable?

TIA

Steve

Read »
Created by dries 1 year 26 weeks ago
Category: News   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Recent comments