1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Article

Scripting: How to Create a 301 Redirect

Stuck? Call us at 877-472-4399 to have our iPage Professional Services set up 301 redirect for a small service fee.

How to Create a 301 Redirect Using .htaccess

Important: You can also manually edit and upload a .htaccess file by using FTP.

  1. Log in to your iPage Control Panel.
  2. Go to .htaccess Editor.
  3. Go to Direct Editor.
  4. Click Change to select which directory you want to place the 301 redirect in.
  5. Add one of the following code snippets into your .htaccess file (based on what you want to do):
    Old to new domain
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^OLDDOMAIN.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.OLDDOMAIN.com [NC]
    RewriteRule ^(.*)$ http://NEWDOMAIN.net/$1 [L,R=301,NC]
    Update "OLDDOMAIN" to the old domain you want to redirect to and update the "NEWDOMAIN" to the new domain it is redirecting to.
    Https Redirect
    RewriteEngine On 
    RewriteCond %{HTTP_HOST} ^DOMAIN.com [NC]
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.DOMAIN.com/$1 [R=301,L]
    Update the "DOMAIN" to the domain that requires the redirect from HTTP to HTTPS
  6. Click Save.

How to Create a 301 Redirect Using the IIS Administration Console

Important: The IIS Administration Console is only available on Windows hosting accounts.

  1. Log in to your iPage Control Panel.
  2. Go to IIS Administration Console.
  3. Click Change to choose which directory you want to redirect from.
  4. Expand URL Redirects by clicking on the '+' button.
  5. In the URL text box, enter the URL you want to redirect to.
  6. Check Permanent Redirect.
  7. Click Set Redirect.
    User-added image

Will adding a 301 Redirect conflict with some of my existing websites

Some website builders preconfigure .htaccess settings that may conflict with the implementation of a 301 Redirect. If you are uncertain of how to properly implement your 301 redirect code, please contact us or call 877-472-4399 and ask about our Professional Services.


Thanks for visiting! Since you landed on this page of our website, we wanted to let you know you visited one of our paid endorsers while researching your purchase. close