I am trying to have my website go from

www.example.com/folder/subfolder

to

www.example.com/subfolder

What I have only seems to redirect me to

www.exmaple.com/folder/

Options +FollowSymlinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^(.+)www.example.com$
RewriteRule ^/(.*)$ /folder/%1/$1 [L]

Read more here: Is there anyway to get rid of a folder but go to the subfolder


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: