How to 301 redirect properly?

Basic discussions about SEO
Posts: 73
Joined: Sat Aug 19, 2017 4:24 am

How to 301 redirect properly?

Postby bm_fisher » Fri Mar 09, 2018 4:44 am

How to 301 redirect properly? I mean from where?

User avatar
Posts: 418
Joined: Wed May 27, 2015 3:41 am

Re: How to 301 redirect properly?

Postby mediadrug » Fri Mar 09, 2018 4:45 am

You can always redirect through .htacess file from your root directory of your domain.

Posts: 73
Joined: Sat Aug 19, 2017 4:24 am

Re: How to 301 redirect properly?

Postby bm_fisher » Sat Mar 10, 2018 7:06 am

Can you provide me the code.

Posts: 16
Joined: Fri Feb 23, 2018 10:04 am

Re: How to 301 redirect properly?

Postby blackmagicbaba » Tue Mar 13, 2018 9:02 am

301 is permanently redirection.

User avatar
Posts: 15
Joined: Wed Feb 28, 2018 10:01 am
Location: Hyderabad, India

Re: How to 301 redirect properly?

Postby komali » Mon Mar 19, 2018 9:12 am

301 redirect is a permanent redirect which passes between 90-99% of link equity to the redirected page.

Posts: 29
Joined: Fri Jun 08, 2018 4:35 am

Re: How to 301 redirect properly?

Postby phaman6 » Thu Jun 14, 2018 9:12 am

wordpress u can install plugin 301 to direct your page

Posts: 318
Joined: Fri May 25, 2018 5:45 am

Re: How to 301 redirect properly?

Postby richardmsmith » Thu Jun 14, 2018 10:27 am

Redirect to www using htaccess redirect:
Create a .htaccess file with the below code, it will ensure that all requests coming in to will get redirected to
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^ [nc]
rewriterule ^(.*)$$1 [r=301,nc]

Please REPLACE and with your actual domain name.

User avatar
Posts: 766
Joined: Mon Jan 18, 2016 5:57 pm
Location: Forum

Re: How to 301 redirect properly?

Postby RH-Calvin » Fri Jun 15, 2018 6:23 am

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
Cheapest VPS | $1 VPS Hosting
Cheap Dedicated Servers | Free Setup and IPMI | Unmetered Bandwidth

Posts: 50
Joined: Mon Jun 11, 2018 7:10 am

Re: How to 301 redirect properly?

Postby Simi123 » Fri Jun 15, 2018 6:58 am

It’s a common question that pops up. You own several domains and host duplicate copies of the same site (or simply point them all to one site). Your business strategy changes and so does the need to change to a new domain. You buy out your competitor’s site but just want to point it to your own. There are many reasons WHY you would want to redirect a domain, but making sure proper redirects are in place can be the difference between advancing your site in the SERPs to dropping out of the SERPs altogether. For additional reading, see our post on resolving canonical issues with 301 Redirects as well (www vs non-www pages).

Consider the value of the domain(s) you are redirecting. MAX out the domain registration to preserve your backlinks as well as to protect against someone buying it up later. It will also preserve any browser bookmarks that are out there to the old domain. This first step is not a requirement for 301 redirecting a domain.
Point the old domain to the new using proper 301 Redirects:
A) An .HTACCESS file:
301 Redirect an entire website domain:
Redirect 301 /
NOTE: This maps old pages to new pages 1 to 1… If the new page doesn’t exist on the new site, you will get 404 errors. So, be careful with this common redirect.
301 Redirect an entire website domain to a single page:
RewriteEngine on
RewriteRule ^.*$ [L,R=301]
301 Redirect a page to a sub-folder:
Redirect /index.html
301 Redirect a page to a new website page:
Redirect /oldfile.html
B) Or within Windows IIS (will need to work with website administrator)

Again, if the domain is not an exact match to the new destination website, a whole site 301 redirect will not work. In this case, 301 redirects should be employed page by page (section by section). Pages that relate can be redirected to their proper counterparts. Any pages that have no homes can simply be redirected to the homepage.
When all website 301 redirects are in place, check your work:
A) Take a sampling of URLs from the old site (representing groups of redirects) and check to make sure they all resolve as proper 301 redirects. This site,, has a tool which when you put in the URL should mention that it’s a 301 from page A to B.
B) See what Google sees. Go to Google and do a site search (Translation, put the following into a Google search, Check each link to make sure that it is actually going where it should be. Fix any issues.
301 Redirects can be a bit tricky to use, and if not coded properly, they just won’t work. If you need HELP ensuring proper 301 redirects are set up on all of your website properties, contact Mannix Marketing – experts in Internet Marketing since 1996.

Posts: 27
Joined: Thu Jun 07, 2018 7:20 am
Location: india

Re: How to 301 redirect properly?

Postby allahbarkatlocket » Sat Jul 14, 2018 7:32 am

Here's how to set up a 301 redirect:
Step 1 of 4. Open up a text editor such as "Notepad".
Step 2 of 4. Copy the following line of code into your text editor, replacing with the URL you wish to forward your domain name to. ...
Step 3 of 4. Save the file as .htaccess.
Step 4 of 4.


Return to SEO General

Who is online

Users browsing this forum: No registered users and 1 guest