Archive for the "Microsoft IIS Server, ASP, ASP.NET" Category.

Sending Email with PHP mail() on a Windows Server

The Problem

Sending email using PHP on a Windows IIS server is not as simple as it is when using a Linux server. On a typical setup the mail() function probably won’t work without some tweaking.

Continue reading "Sending Email with PHP mail() on a Windows Server" »

Redirect Single Pages with Classic ASP

The Goal

If you have some ASP pages that you want redirecting to new URLs with the correct “301 Moved Permanently” status, this simple solution is easy to implement.

Continue reading "Redirect Single Pages with Classic ASP" »

Redirect Single Pages with ASP.NET

The Goal

I recently had to redirect an old website to a new domain. The old domain had 11 pages indexed by Google but I only needed them to redirect to the home page of the new domain, rather than all having separate redirects to new URLs.

If I were using Apache this type of redirect would be easy to implement with a .htaccess rewrite rule. Therefore, I expected that Microsoft’s IIS web server would have a similar scripting method to redirect a whole website to a new domain.

(This was a shared hosting account so access to the IIS sever itself was not possible.)

Continue reading "Redirect Single Pages with ASP.NET" »