Community & Support

My website address has /drupal after it?

Hi,

Can I just say that I am a complete novice - I have never built a website before and therefore I know little or nothing about jargon littered around.

This is probably going to be a really stupid question, particularly given I don't even know the correct terms to use when describing. Added to that, I'm not even sure if my question is in the appropriate topic. (Appologies if its not)

I'll try my best to explain the problem;

I am using hosting provider HaaBi.
I access the control panel through https://supremecenter15.co.uk/members/
Within that, I have an are called File Manager. (Nothing has been installed on my PC)
In file manager I have folders www/'mydomainname'.com/drupal

I had a choice of Web builders which they install through the control panel.
I chose Drupal, and Haabi's 'Elefante free scripts' seems to have installed drupal into the above folder.

The problem with this is, when I navigate to 'mydomainname'.com I get the page - 'Index of/ with a drupal folder in it
Therefore my site can only be accessed via www.'mydomainname'.com/drupal
Obviously this is not ideal, and I just want to access my site via www.'mydomainname'.com

In Habbi file manager I moved all of the drupal folder contents into 'mydomainname' folder which worked in terms of being able to access my built site via www.'mydomainname'.com.

However, I can't seem to use drupal via 'mydomainname'.com/?q=node/1
I had to move all the files back into the drupal file and carry on editing via 'mydomainname'.com/drupal/?q=node/1

Is that normal?
Can someone tell me how to remove the /drupal while still being able to use annd edit using 'mydomainname'.com/?q=node/1

Thanks, and sorry in advance.

Regards,
Luke

Moved per forum guidelines by VM

Comments

Hey Luke, Try moving the

Hey Luke,
Try moving the drupal installation back to www/mydomainname.com. Make sure that there is not a file called index.php already in that folder. If there is, move it into www/. Also, make sure you get the file .htaccess. This file may be hidden depending on your operating system.

Last but not least, navigate to the sites/default/settings.php file (should be in www/mydomainname.com/sites/default/settings.php after you move the dir) and make sure that a line starting with "$base_url =" is either commented out with a # sign or not present in the file. If that doesn't work, reply here and someone should be able to help you further.

Make a header redirect

In your root directory (i.e. something like public_html or www) create a page called index.php ( you can use notepad on your local computer and later upload it, take care it must not be saved as a text). paste the following code

<?php
$redirect
= 'www.yoursite.com/drupal/index.php';
header("Refresh: 1; URL=index.php?redirect=$redirect");
?>

It will redirect the site without any change in the existing structure.

_

It might be better to move the entire Drupal installation to the root directory - as per rbayliss comment.

Redirecting will work - but you could get into problems later when you need to create path aliases, file settings in the configuration of Drupal - etc. . As a beginner with limited experience and time you should try to keep things as simple as possible.

Try to install Drupal without the script and you will learn some of the really important base lessons of "Installing Drupal". While Drupal works well out of the box - there are always little tricks and things to learn that could go wrong - like the .htaccess file from Drupal that sometimes has to be "forced" = manually reinstalled with FTP or command line.

-----------
Good luck .....
the results of trying Drupal just once are
www.mallsandmore.com
www.sds-i.com
www.proRotaTherm.com

Hi all,I'm really pleased

Hi all,

I'm really pleased and surprised at the amount of responses.
After pondering over it for hours last night among other things the solution was simple and basically as you said above.

I copied all of the drupal folder contents back into 'dominamane' folder. (as I did before)
The 'www.domainname/?q=node/1' did not work but after trying to solve a complete different problem, I realised I can login to admin using 'www.domainname/user'. It seems like I can do everything I need to through that login.

If the .HTACCESS way hidden I may not have copied it and then I probably deleted it.

Out of interest, I tried to remove # from $base_url but got message 'File cannot be saved?'
I thought I could download the file and change it on my pc, and then re upload it with the changes but problem:
'Unable to download download.php from supremecenter15.co.uk
Unable to open this Internet site. The requested site is either unavailable or cannot be found'

Last solution would be to copy paste the php text into notepad,change it and then upload over the other file. Would that work? Or am I ruining something by doing that.

I seem to have one challenge/problem after another :)
I can't say drupal is particularly intuitive for a complete novice. But when I've finished my site i'll be sure to write on blog on my trials and tribulations.

At the moment I can't even add an image, but I'll pu that in another forum question.

Thank you all so much for replies.

_

You need to change the access permission to the file to 777. Setting.php is write protected. On a localhost you may also have to change the write permissions to the folder settings.php is.

If it is write protected you can't upload a locally change file to the server either.

-----------
Good luck .....
the results of trying Drupal just once are
www.mallsandmore.com
www.sds-i.com
www.proRotaTherm.com

Now I have another problem

Now I have another problem which I think is related.

Upon changing modules, clicking save -I am directed to:
The webpage cannot be found
HTTP 404
Most likely causes:
•There might be a typing error in the address.
•If you clicked on a link, it may be out of date.

If I click return to last page. I return and the change has been made. But obviously its still pretty annoying.

Occurs whenever I click save...
(This is after I moved my folder contents as mentioned above)

_

Yes, good point - you will need to redirect all the content you created.

You could use a auto redirection module, use VBO View bulk option module - or just go through each node if there are not too many - open (edit) it and then save.

Are you using pathauto?

..

-----------
Good luck .....
the results of trying Drupal just once are
www.mallsandmore.com
www.sds-i.com
www.proRotaTherm.com

Thanks for replying again.I

Problem solved;
I reinstalled drupal with the path name '/' instead of '/drupal'.
Although I realise you can go into URL aliases and remove the '/drupal' manually.

I wanted to start again as I had so many modules flying around.

Thank you very much for your help.