views:

40

answers:

2

now i saw a very good php script and i rewrite it to asp the script here:Fantastic Animation PHP/CSS/jQuery Error pages but know iam in big problem how i can use .htaccess in asp see how it work

ErrorDocument 500 /error.php?code=500

can i use .htaccess in asp please tell me because iam newbie in it because know i convery error.php to error.asp

+1  A: 

.htaccess is on linux machines

If you are using ASP (you should be on ASP.Net by now) on Windows, you just use the normal Windows Explorer security settings (right click folder or file, properties, security) to assign specific security settings

For custom error pages in IIS have a look at this for Server 2003/IIS6 or this for Server 2008/IIS7

TFD
*".htaccess is on linux machines"* No, Apache uses it regardless of what OS you're using.
T.J. Crowder
+2  A: 

.htaccess is a web server thing (primarily Apache), not a PHP or ASP thing. If you have your system set up that Apache serves ASP pages (passing through to IIS or using another ASP interpreter), sure, you can use .htaccess with it. But if you're using IIS directly, IIS has its own mechanism for doing things like mapping error pages and such.

T.J. Crowder