View previous topic :: View next topic |
Author |
Message |
b0b -
Joined: 01 Jun 2004 Posts: 24
|
Posted: Mon Mar 27, 2006 5:10 pm Post subject: ASP.NET MIME Type |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Mon Mar 27, 2006 5:14 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Mar 28, 2006 3:45 pm Post subject: Re: ASP.NET MIME Type |
|
|
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 |
|
|
|