301 Redirect Using .HTAccess - Redirect A Website Page | WP Learning Lab





The interactive transcript could not be loaded.


Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jul 7, 2015

Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL
Download our exclusive 10-Point WP Hardening Checklist: http://bit.ly/10point-wordpress-harde...
301 Redirect Using .HTAccess - Redirect A Website Page | WP Learning Lab

Redirect 301 /old-page/ http://domainname.com/new-page/

Sometimes you have to 301 redirect a website, an individual website page or multiple website pages. In this tutorial I'm going to show you how to create a 301 redirect via your .htaccess file.

A 301 redirect is a permanent redirect and it tells search engines, including Google to remove the original URL from their index and replace it with the one you're redirecting to.

So let's put that code from above into your .htaccess file and redirect some pages!

First login into your hosting account cPanel. Then find and click on the File Manager icon and choose the Document Root for the website that you are hardening. This will open the root of the website in another tab.

You can also log into the website root using FTP if you are more comfortable with that.

If you do not see a .htaccess in the website right then you can make one by clicking Add New File in the File Manager or right-clicking and choosing Create New File via File Transfer Protocol (FTP).

Open the .htaccess file and paste the code below into it.

Redirect 301 /old-page/ http://domainname.com/new-page/

Replace "/old-page/" with just the part of the URL that comes after the domain name.

For example, to make an .htaccess redirection from https://wplearninglab.com/brute-force... to https://wplearninglab.com/wp-statisti... our 301 would look like this:

Redirect 301 /brute-force-attack-real-time-pong-game/ https://wplearninglab.com/wp-statisti...

You can test the website URL redirection immediately after saving the changes in the .htaccess file. If you are not redirected the something went wrong. That is how you redirect a page or redirect URL using .htaccess.

I hope this video on redirect webpage, redirect website and re-direct url using .htaccess helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.


If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.


Connect with us:

WP Learning Lab Channel: http://www.youtube.com/subscription_c...

Facebook: https://www.facebook.com/wplearninglab

Twitter: https://twitter.com/WPLearningLab

Google Plus: http://google.com/+Wplearninglab

Pinterest: http://www.pinterest.com/wplearninglab/


When autoplay is enabled, a suggested video will automatically play next.

Up next

to add this to Watch Later

Add to

Loading playlists...