Forum

Need help with rewrite rule

Fred
5 January 2016, 16:34
Hi Hugo,
I change the admin url of my wordpress wp-admin so it read http://www.mydomain.com/secret-folder/

In classic apache, all I would need to do is add the following in the .htaccess file
RewriteRule ^secret-folder/(.*) wp-admin/$1?%{QUERY_STRING} [L]


Could you please help me to translate this rule in a format that hiawatha will be able to understand?

Thank you in advance
Fred
Hugo Leisink
6 January 2016, 08:54
This should do it.
Match ^(/secret-folder/(.*)) Rewrite /wp-admin/$2?$1
Fred
6 January 2016, 10:13
Thank you very much
This topic has been closed.