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.

Asp to Php - Mod Rewrite

Discussion in 'Apache' started by kusadasi-guy, Dec 25, 2004.

  1. #1
    Hi All;

    i would like to move my website to a linux hosting from win hosting. All most all of my pages are .asp pages and i dont want to change the file extensions.

    i am sure that a .htaccess file runs my .asp pages as php if i change my asp codes to php.

    So, can you help me to build my .htacess file?
     
    kusadasi-guy, Dec 25, 2004 IP
  2. xml

    xml Peon

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    AddHandler application/x-httpd-php .asp .aspx
     
    xml, Dec 26, 2004 IP
  3. kusadasi-guy

    kusadasi-guy Peon

    Messages:
    83
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks XML;

    so is it what i need
    
    RewriteEngine on
    AddHandler application/x-httpd-php .asp .aspx
    Code (markup):
     
    kusadasi-guy, Dec 26, 2004 IP
  4. xml

    xml Peon

    Messages:
    254
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I normally go with something like this:

    RewriteEngine On
    
    Options +FollowSymlinks
    
    AddHandler application/x-httpd-php .asp .aspx
    Code (markup):
     
    xml, Dec 26, 2004 IP
  5. kusadasi-guy

    kusadasi-guy Peon

    Messages:
    83
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for your help, it works great!
     
    kusadasi-guy, Dec 26, 2004 IP