Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Apache redirecting

Options

Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    using the .htaccess file - Google is your friend


  • Registered Users Posts: 387 ✭✭gimme5minutes


    I have googled and I didn't find a clear easy to understand answer, that's why am I asking here. Often it's quicker to get an answer on a forum than to spend a couple of hours searching google, which I already have done anyway.

    From what I've read there are multiple ways to do redirect, through html, php, apache, c, perl.....I want to know which is the best way, which is the standard way it is done. I would have presumed if apache redirected the request straight away it would be more efficient than if it send the request to a html or php that then redirected it.

    If apache is the best way to do it, could you tell me what is the command I need to use?


  • Closed Accounts Posts: 1,200 ✭✭✭louie


    try this in your htaccess file
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /drupal/
    
    # some other rules below
    

    have a look at this

    http://perishablepress.com/press/2008/10/06/redirect-subdirectory-to-root-via-htaccess/


  • Registered Users Posts: 2,764 ✭✭✭DeadParrot


    Might you just be able to change the the baseurl in the settings.php file and move all your files?


  • Registered Users Posts: 197 ✭✭pauldiv


    Move Drupal to root driectory:

    http://drupal.org/node/423712


  • Advertisement
Advertisement