Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 04-08-04
DanielCoe's Avatar
Home is where I hang my @
 
Join Date: Sep 2003
Location: My Bedroom
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
DanielCoe is an unknown quantity at this point
  Redirecting ASP to another file on Apache

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-08-04
DanielCoe's Avatar
Home is where I hang my @
 
Join Date: Sep 2003
Location: My Bedroom
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
DanielCoe is an unknown quantity at this point
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7