I would like to redirection from the whole old subdirectory to new location in the same website with htaccess file. (I run wordpress website with redirection plugins but it take to much resources by adding more records.)

For example, if I want to do the Redirect 301 process from

www.mydomain.com/olddirectory/page%
to
www.mydomain.com/newdirectory/specific-url/

I have tried to search the example of using regular expression but I can’t find them. Please suggest me about this matter.

Read more here: How to 301 redirect in .htaccess with REGEX rewrite url


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: