SEF url

Discussion in 'Programming' started by Kuna, Dec 25, 2009.

  1. #1
    Kuna, Dec 25, 2009 IP
  2. dhvanit

    dhvanit Peon

    Messages:
    137
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Obviously, Try with .htaccess
     
    dhvanit, Dec 26, 2009 IP
  3. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    .htaccess is a better method. However following simple method will also work.

    1. Save following code to index.php

    
    <?
    Header( "HTTP/1.1 301 Moved Permanently" ); 
    Header( "Location: http://www.example.com/somefile.exe" ); 
    ?>
    
    PHP:
    2. Make a folder with the name thisismyfile under your domain root

    3. Put the index.php that you have just saved inside the folder
     
    NeoCambell, Dec 28, 2009 IP
  4. chadsmith

    chadsmith Peon

    Messages:
    82
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    chadsmith, Jan 3, 2010 IP