by johanc | Dec 7, 2022 | Web Developer
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...
by johanc | May 4, 2022 | Developer, Framework, Language, Web Developer
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 =...
by johanc | Jan 5, 2021 | Web Developer
How to make a web site or folder on the site offline in Apache through .htaccess. A website or folders within it can be taken down by pointing search engine crawlers to the 410 status code. This code notifies the user that the resource is no longer available on the...