Header Scripts

Redirect the Home Page Only with .htaccess

When a website is redirected to another site, it may be necessary to redirect the home site to a local page instead of the new URL. This can be to show redirect information or just show a logo on the old web site. The redirect info can be written in the .htaccess file...

Get the URL From Current Page in C#

You may need to get the URL from an ASP.NET web page in C#. Here are some examples on how to do this. Example: http://localhost:78000/Sandbox/Default.aspx?q1=1&q2=2 Code: $host = HttpContext.Current.Request.Url.Host; $authority =...

Using Response.Write in a C# Class

It’s not that difficult to use Response.Write() in a .NET Framework WebForms class. Classes in a WebForm application can’t use Response.Write() by default. The following steps will allow you to use this function along with other functions such as...

Running PowerShell on a Remote Computer

Remoting in a computer with PowerShell is easier than connecting by VNC or RDC if you just need to do a few admin functions. Enable PowerShell to accept remote connections. Go to machine and run PowerShell as administrator. Run this command: Enable-PSRemoting -Force...

Setting Default Document for Laravel in IIS

If you build Laravel applications in Windows 10 using IIS, you will get an error message if you try viewing your web site. This is easily fixed appending web.config. When you setup a website entry in IIS and point it to your Laravel application, you’ll get the...
Translate ยป