Using a raw URL

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 9th, 2007, 22:29
New Member
Join Date: Jul 2007
Location: UK
Age: 39
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote

  #2 (permalink)  
Old Jul 9th, 2007, 23:07
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3 (permalink)  
Old Jul 10th, 2007, 04:05
Junior Member
Join Date: Apr 2006
Location: WebmasterGround.com
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Reply

Tags
url

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:52.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43