Please help me with this:
I have installed Drupal 5.9 in a folder called "folder" in the root and it works fine.
To access the website I have to go to "mywebsite.com/folder".
How can anybody access the main page when they will just type "mywebpage.com" (redirected?)? The URL for the node does not allow me to erase "/folder".
Thanks.

Comments

brenda003’s picture

Is there a reason you can't simply move all the files out of folder and into the main root directory?

dvd1’s picture

Yes there is always a reason, good or bad.
But I would've appreciated a reply like yes, is possible like this... or no, is not possible - it has to be installed in the root.

j.somers’s picture

You can use a simple PHP redirect script. This will also tell search engines such as Google to redirect links.

Create an 'index.php' file containing the following lines:

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.example.com/folder/");

Be sure to replace the 'http://www.example.com' URL by your website URL.

But as mentioned earlier, if there is not reason to install Drupal into a sub folder of your website I would advise you not to do it.

DL’s picture

if you are using cpanel, there is an option for url redirects.

Live hard, Ride harder