How I to do redirect in .htaccess in this way?

Posted September 10, 2015 2.1k views
Linux BasicsApache

How I to do a redirect in .htaccess in this way?* –>** –>*

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Add the following to’s .htaccess:

RedirectMatch 301 ^/blog/(.*)$$1

Take a look at the following tutorial:

by Justin Ellingwood
HTTP redirects are used to redirect web site visitors to new locations when they request content. These are useful for a variety of reasons, whether permanent or temporary. This guide will demonstrate how to redirect visitors using Apache and Nginx.