Rewriting URL with htaccess

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

Leave a Reply

Your email address will not be published. Required fields are marked *