1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help with redirect

Discussion in 'Apache' started by danielle, May 16, 2005.

  1. #1
    danielle, May 16, 2005 IP
  2. MELLA

    MELLA Peon

    Messages:
    5,189
    Likes Received:
    267
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you want to change your page from index to something else, use Mod_rewrite, you can add this code to your .htaccess file:

    DirectoryIndex otherpage.php index.php index.html

    OR:

    you can use php to do a simple redirect:

    index.php
    PHP code:
    
    <?php 
        header( 'HTTP/1.1 301 Moved Permanently' ); 
        header( 'Location: http://'.$_SERVER['HTTP_HOST'].'/startpage.php' ); 
    ?> 
    Code (markup):

    But dont quote me on that. :eek:
     
    MELLA, May 16, 2005 IP
  3. miko67

    miko67 Well-Known Member

    Messages:
    769
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    120
    #3
    I would use something alog these lines in .htacces:

    But you can also go to www.mod-rewrite.com forum for a solution. They usually have quite capable persons there :)
     
    miko67, May 16, 2005 IP