Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member tonyf12's Avatar
    Join Date
    Mar 2007
    Posts
    132
    Member #
    14998
    I am running a forum and have switched from one forum to another, I need a redirect script that will redirect from /Forum/index.php, /Forum/forum.php and /Forum/login_xs.php to /IP/index.php, /IP/forum.php and /IP/login.php . I do not know any php so how would you do this.

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    PHP Code:
    <?php
    header
    ("Location: /IP/index.php");
    exit;
    ?>
    Place that in /Forum/index.php, and copy/modify it as appropriate to the other two locations.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    (The other way to do this would be with Apache's mod_rewrite, but that is a little more complicated. Just in case you want to look into it.)

  5. #4
    Senior Member tonyf12's Avatar
    Join Date
    Mar 2007
    Posts
    132
    Member #
    14998
    Quote Originally Posted by Shadowfiend
    (The other way to do this would be with Apache's mod_rewrite, but that is a little more complicated. Just in case you want to look into it.)
    This is on a shared server so no access to the root

    Quote Originally Posted by filburt1
    PHP Code:
    <?php
    header
    ("Location: /IP/index.php");
    exit;
    ?>
    Place that in /Forum/index.php, and copy/modify it as appropriate to the other two locations.
    Thanks

  6. #5
    Senior Member leprechaun13's Avatar
    Join Date
    May 2005
    Location
    Northampton
    Posts
    487
    Member #
    10058
    you dont need root for mod_rewrite im on shared and use it a fair bit very handy

    Code:
    RewriteEngine on
    
    RewriteRule ^/Forum/index.php /IP/index.php
    would be how to start your htaccess file
    Regards Phil,



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:03 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com