Results 1 to 2 of 2

 

Thread: Redirecting ASP to another file on Apache

  1. #1
    Home is where I hang my @

    Status
    Offline
    Join Date
    Sep 2003
    Location
    My Bedroom
    Posts
    412
    Thanks
    0
    Thanked 0 Times in 0 Posts


    Hi,

    I have a link to a ASP file on my site.

    But I want to redirect the .asp file to another .php file.

    How can I do this using mod_rewrite?

    I am running Linux and Apache, so at the moment when using mod_rewrite when I click on the .asp link the computer tries to download the file and not go to it.

    But then again I do not want the machine to go to the .asp file but modrewrite straight to a php file.

    I can change my Apache Handlers but I do not know what to set them to?

    Any advice?

  2. #2
    Home is where I hang my @

    Status
    Offline
    Join Date
    Sep 2003
    Location
    My Bedroom
    Posts
    412
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I have managed to fix it by adding:

    AddType application/x-httpd-php .asp

    to the .htaccess file.

    Now all .asp pages are parsed as PHP.


    Thanks

    Dan



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.0 RC2