Using 301 Page Redirects

Generic selectors
Exact matches only
Search in title
Search in content
Filter by Categories
Account Management Help
add photos, video and audio
Add-on features and social media
Advanced
Advanced campaign settings
All about analytics
All about images
Basic steps
Configure the Web Application Firewall (WAF)
Connect my Calendar and Online Storage to Workspace
contact support
copy files to my site
Create my email address
Customize campaign
Discover domains
discover linux hosting with cPanel
Discover Microsoft 365
Discover Online Storage
Discover Workspace Email
edit content
Email Marketing demo
expand your site with sections and pages
Explore email add-ons
Explore my account
Find server and port settings (IMAP/POP)
fine tune my website
get social
Get started with SSL certificates
Get the most out of Microsoft 365
help my site get found and monitor my metrics
Hosting & Servers
How to use WordPress
keep my account secure
Keep my email secure
know your privacy rights
Legacy
Manage your SSL certificate
Managed WordPress
Manual email configuration
Migrate and export my emails
My email account isn’t working (troubleshooting)
nameservers and DNS
organize
parking, forwarding and monetizing
privacy and protection
publish my site
Quick Shopping Cart
Renew my products and services
renewals
Security
Sell products and raise money (Online Store Builder)
Set up a campaign
Set up email on my devices
set up my payment methods
Set up my Workspace Email account
start with the basics
Stay productive anywhere with Office apps
Streamline email tasks to help my business
The WordPress LAB
transfer between accounts
transfer between registrars
Troubleshoot email and email setup
troubleshooting
Troubleshooting
Uncategorized
Upgrade and renewal options for email
Web & Classic Hosting
Website backups
Website Builder 7
Website Builder version 6
Website Security and Backups
Websites
work with databases
work with delegates
working with blogs

If you renamed or moved pages of your website, a 301 redirect lets you automatically redirect visitors and search engine spiders to your new pages while maintaining your search engine ranking.

For example, you can redirect traffic from oldpage.php (.asp or .jsp) to “http://www.newdomain.com/newpage.html” and retain your search engine ranking and back links.

Use the code below to redirect traffic to your pages using a 301 Redirect.

 Note: In the code examples below, replace “oldpagename” with the name of your old Web page from which you want to redirect traffic and replace “newpage.html” with the name of the new Web page to which you want to redirect traffic.

PHP

Save this as oldpagename.php

<?php>
header("HTTP/1.1  301 Moved Permanently");
header("Location: http://www.newdomain.com/newpage.html");
exit();
?>

ASP

Save this as oldpagename.asp

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

ASP.NET

Save this as oldpagename.aspx

<script language="c#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");\
}
</script>

.htaccess

When using a Linux server with the Apache Mod-Rewrite module enabled, you can create a .htaccess file to ensure that all requests to coolexample.com will redirect to www.coolexample.com, where “coolexample.com” is your domain. Save the .htaccess file in your old website’s root directory, which is the same directory as your index file. You can create a .htaccess file with the following code:

RewriteEngine on
rewritecond %{http_host} ^coolexample.com [nc]
rewriterule ^(.*)$ http://www.coolexample.com/$1 [r=301,nc]

IIS on VPS or dedicated server

When using a Windows server, you can redirect to a 301 page using IIS.

  1. In the Internet Services Manager, select the file or folder you want to redirect.
  2. From the right-click menu, select a redirection to a URL.
  3. Specify the file name of the page to which you want to redirect.
  4. Select The exact URL entered above.
  5. Select A permanent redirection for this resource.
  6. Click Apply.

Changing the currency for the products.

Prices shown in US Dollars. You can convert to your own currency after selecting a product.