How to redirect URL using .htaccess

1. Use the following code

Redirect permanent /folder http://www.abc.com/newfolder

From the above code, you can redirect a url such as “www.abc.com/folder” to a new destination as “www.abc.com/newfolder”. You can modify it according to your requirements.

2. Open the .htaccess file found in “/public_html” directory and copy the code and paste it above # END WordPress, found at last.

There are more ways of modifying a redirect but we like to do things in a simple way.

RELATED POSTS: 

  1. How to see NoFollow links on any webpage?
  2. How to remove URLs from Google Search or Google Cache via Google Webmasters?
  3. Redirect Error 404 page to homepage automatically
  4. How to create a good Robots.txt file?
Stay in touch with us on Facebook or Twitter or Google+ to keep yourself updated on stuff related to the world of Technology.


Comments