Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Apache

  1. #1
    Regular Coder
    Join Date
    Oct 2004
    Posts
    369
    Thanks
    0
    Thanked 18 Times in 18 Posts

    Apache

    does anyone know how to get everybody redirected to a certain place, whatever URL they put in?

    So if 6they put in www.mysite.com/directory/page.html or anyother URL like that, they get redirected to www.mysite.com/ ?

  • #2
    4xz
    4xz is offline
    Regular Coder
    Join Date
    Aug 2004
    Location
    localhost
    Posts
    163
    Thanks
    0
    Thanked 1 Time in 1 Post
    How bout a php page called index.php with this contents :

    <?php
    header("Location: <url to go to>");
    ?>

  • #3
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wouldn't you have to place that in every directory though?

  • #4
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts


  •  

    Posting Permissions

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