This is a discussion on "Using a raw URL" within the Starting Out section. This forum, and the thread "Using a raw URL are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Using a raw URL
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Using a raw URL
Hi guys. I'm totally new at this design thing. Infact I have a really simple problem which I can't seem to work out.
I've got a domain name and I've paid for hosting. I've installed Drupal and a theme into a subdirectory as I don't want the root directory cluttered. I've set up the mysql databases and the site works. The problem is this. I want the site to display on the domain name. Say www.example.co.uk Now I have the cms (drupal) installed in a subdir /drupal/. When I go to the site I'm coming to the root directory of the site with only the directories showing. I've thought about putting drupal into the root directory to get around this. But I want the site displayed on the domain I have. So I want the site showing when I go to my site say www.example.co.uk. Rather than www.example.co.uk/index.php. At the moment I have a redirect on the host going from the domain to www.example/drupal/index.php which isn't any good to me. How do I use the URL with just co.uk at the end? |
|
|
|
|||
|
Re: Using a raw URL
You need to put the drupal folder in the root. It's the only way really. Don't worry too much about clutter you'll get used to it. When you get really comfortable with all the different files and folders. Something has to go in the root after all.
Pete. |
|
|||
|
Re: Using a raw URL
You could use mod_rewrite directives in your .htaccess to redirect all access into the root directory to the drupal folder.
Something like: RewriteRule ^(.*).php$ drupal/$1.php [nc] Not sure if it would cause problem though. The best thing is to put the drupal files in the root directory. |
![]() |
| Tags |
| url |
| Thread Tools | |
|
|