ASP.NET MIME Type

 
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
b0b
-


Joined: 01 Jun 2004
Posts: 24

PostPosted: Mon Mar 27, 2006 5:10 pm    Post subject: ASP.NET MIME Type Reply with quote

Okay, I'm trying to achieve the same thing many PHP servers do, by setting the default MIME type of files without extensions to execute as PHP, but in this case, I want to do it with ASP.NET.

Anyone know how?

http://localhost/mypage.aspx

becomes:

http://localhost/mypage
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon Mar 27, 2006 5:14 pm    Post subject: Reply with quote

Can you not do the same for .aspx as you can with .php and remove the extension?
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Mar 28, 2006 3:45 pm    Post subject: Re: ASP.NET MIME Type Reply with quote

b0b,

The best solution is to use the URL rewriting script suggested in http://www.aprelium.com/forum/viewtopic.php?t=7865 .
To achieve your rewriting goals, the $redirection variable in the script should be set to:

Code:

$redirection = array(
   '^(.*)$' => '/$1.aspx'
);

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group