By dvd1 on
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
Is there a reason you can't
Is there a reason you can't simply move all the files out of folder and into the main root directory?
Yes there is always a
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.
PHP Redirect
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:
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.
if you are using cpanel,
if you are using cpanel, there is an option for url redirects.
Live hard, Ride harder