Switch ASP.Net with 32 bits

Today, when I am trying to check the VPS client server and getting error of services unavailable all of the time.

As I do not know what is being installed earlier, hence I am checking it’s PHP and ASP.Net version. Finally, it is found out the problem came from the ASP.Net.

As the VPS is running Hyper-V with VPS, hence a 64 bits OS used. Hence changing the ASP.Net to 32 bits could get it fixed.

By changing the ASP.Net from 64 bits to 32 bits, you may refer to the step as below.
1. Open a command prompt.
2. Enable the 32 bits environment.

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

3. Reapply the ASP.Net.

%SYSTEMROOT%\Microsoft.NET\Framework64\vx.xxx\aspnet_regiis.exe -i

where the x.xxx version is your .Net Framework version.

All in one redirect scripting

HTML redirect:

For most of the webmaster, they will prefer 301 Redirect. With HTML redirect with HTML, I will suggest canonical type.

You may use the following script from the HTML with canonical redirection.

<link rel="canonical" href="http://www.mickgenie.com/" />

htaccess with mod_rewrite redirect:

If you are using Apache or Mod_Rewrite enabled Web services, htaccess with mod_rewrite redirect is very useful, you may use the following script to perform your redirection.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mickgenie.com
RewriteRule (.*) http://www.mickgenie.com/$1 [R=301,L]

ColdFusion Redirect:

Sample code for Cold Fusion.

<cfheader name="Location" value="http://www.mickgenie.com/">

PHP Redirect:

Sample code for PHP.


ASP Redirect:

Sample Code for ASP.

<%@ Language=VBScript %>
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.mickgenie.com/"

ASP.Net Redirect:

Sample Code for ASP.Net.

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)

Java Redirect:

Sample Code for Java.

response.setHeader( "Location", "http://www.mickgenie.com/" );
response.setHeader( "Connection", "close" );

Perl & CGI redirect:

Sample Code for Perl & CGI.

$q = new CGI;
print $q-› redirect(" http://www.mickgenie.com/ ");

Ruby & Ruby on Rails Redirect:

Sample code for Ruby & Ruby on Rails.

head :moved_permanently, :location =› "http://www.mickgenie.com/