Answer the question
In order to leave comments, you need to log in
How to fix fancy stuff in .htaccess?
Hello!
I needed a link like /wp-content/themes/olmerk/rus.php to be replaced with /rus
. I got to the point that now this link does not work at all. I put the following in htaccess:
RewriteEngine On
RewriteCond %{THE_REQUEST} "/wp-content/themes/olmerk/rus.php"
RewriteRule ^ http://mysite.eu/rus [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/wp-content/themes/olmerk/rus.php -f
RewriteRule ^([^/]+)$ /rus [L]
Options +MultiViews
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteRule ^wp\-content/themes/olmerk/rus\.php$ /rus? [L,R=301]
On this
RewriteEngine On
RewriteCond %{THE_REQUEST} "/wp-content/themes/olmerk/rus.php"
RewriteRule ^ http://mysite.eu/rus [R=301,L]
RewriteRule ^rus$ /wp-content/themes/olmerk/rus.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question