I am trying to rewrite the url to my wordpress theme folder as so:

Actual URL: http://www.mydomain.com/wp-content/themes/mytheme/style.css

Trying to rewrite to: http://www.mydomain.com/mytheme/style.css

Here is what I have in my .htaccess file which is in my home folder, and is not working:

RewriteEngine On
RewriteRule ^mytheme/(.*) /wp-content/themes/mytheme/$1 [QSA,L]

What am I doing wrong?

Read more here: Rewriting URL with htaccess


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: