How to do a rewrite rule in web.config

If you would like to do a domain URL redirection from domain.com to www.domain.com or vise versa, you can do something like this:

Place either of these (depending on what you’d like done. And edit to match your domain) inside the <system.webServer></system.webServer> tags in the web.config of the domain.

<rewrite><rules>
<rule name=”Add WWW prefix” >
  <match url=”(.*)” ignoreCase=”true” />
    <conditions>
      <add input=”{HTTP_HOST}” pattern=”^domain\.com” />
    </conditions>
  <action type=”Redirect” url=”http://www.domain.com/{R:1}”
    redirectType=”Permanent” />
</rule>

<rule name=”Remove WWW prefix” >
  <match url=”(.*)” ignoreCase=”true” />
    <conditions>
      <add input=”{HTTP_HOST}” pattern=”^www\.domain\.com” />
    </conditions>
  <action type=”Redirect” url=”http://domain.com/{R:1}”
    redirectType=”Permanent” />
</rule>
</rules></rewrite>

Tags: , , , | Posted under DotNet/Windows Hosting, Programming/Coding | 15 Comments

How to Install Mantis Bug Tracker From Your cPanel Using Softaculous

This article will give you a step by step guide on how to install Mantis Bug Tracker from your cPanel.

Sign into your cPanel and follow these steps:

1) Click Softaculous. Learn More

Tags: , , , , , , , , | Posted under cPanel/Linux Hosting, Mantis Bug Tracker, Video | 6 Comments

How to Install ProjectPier From Your cPanel Using Softaculous

This article will give you a step by step guide on how to install ProjectPier from your cPanel. Sign into your cPanel and follow these steps:

1) Click Softaculous.

 1

2) Scroll down to Project Management. Find the ProjectPier link and click on it. Learn More

Tags: , , , , , , , | Posted under cPanel/Linux Hosting, ProjectPier | 2 Comments