Results 1 to 6 of 6

Thread: need some help on redirecting squirrelmail

  1. #1
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    551
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    need some help on redirecting squirrelmail

    Hey Guys
    I am just wondering if anybody tell me how to redirect mail.domain.com/squirrelmail/src/login.php just back to mail.domain.com.

    I used this guide:https://help.ubuntu.com/community/Squirrelmail
    Tim's Computer Repair
    trpcrepair.com

  2. #2
    Join Date
    Jul 2009
    Location
    South Africa
    Beans
    168
    Distro
    Ubuntu

    Re: need some help on redirecting squirrelmail

    If you need to access "mail.domain.com/squirrelmail/src/login.php" to get to squirrelmail, I assume you installed Squirrelmail into a subdirectory of your web server (probably /var/www/squirrelmail).

    You can't "rewrite" mail.domain.com/squirrelmail/src/login.php to mail.domain.com without making squirrelmail inaccesable.

    There are other ways though:

    You could move squirrelmail. If squirrelmail is the only web content on your web server.

    If you don't want to move squirrel or if you have other content, and if you already have an index.html or index.php, you can modify that to include a link to your squirrelmail login.

    I suppose you could also use apache's .htaccess file with the mod rewrite function.

    Maybe a little more insight on exactly what you are trying to accomplish could help

  3. #3
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    551
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: need some help on redirecting squirrelmail

    I want to move squirrelmail period so how would I do that.
    Tim's Computer Repair
    trpcrepair.com

  4. #4
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    551
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: need some help on redirecting squirrelmail

    anybody?
    Tim's Computer Repair
    trpcrepair.com

  5. #5
    Join Date
    Mar 2008
    Location
    Back to India
    Beans
    278
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: need some help on redirecting squirrelmail

    you can edit the 'mail.domain.com/squirrelmail/src/login.php' but in such case no body will be able to login to squrriel mail !

    If so then edit the login.php and add the following lines to it.

    <html>
    <?php
    /* This will give an error. Note the output
    * above, which is before the header() call */
    header('Location: http://www.example.com/');
    ?>
    This should be the very first lines of the login.php file.
    Before any editing create a backup copy of file for secure editing.


  6. #6
    Join Date
    Nov 2007
    Location
    Coldwater, OH
    Beans
    551
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: need some help on redirecting squirrelmail

    well I just want the link from: /squirrelmail/src/login.php to be removed.
    Tim's Computer Repair
    trpcrepair.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •