Hi !First of all, thanks for Webinoly ! It's really one of the best thing I could see. I appreciates to use it :)We have a plugin in our side, in 1 site (we are using 3 sites) that requires to add that lines :
# BEGIN Hide My WP
rewrite ^/other/js/embed\.min\.js /wp-includes/js/wp-embed.min.js?UDnMqz_hide_my_wp=1234 last;rewrite ^/other/(.*) /wp-includes/$1?UDnMqz_hide_my_wp=1234 last;rewrite ^/file/(.*) /wp-content/uploads/$1?UDnMqz_hide_my_wp=1234 last;rewrite ^/ext/(.*) /wp-content/plugins/$1?UDnMqz_hide_my_wp=1234 last;rewrite ^/skin/main\.css /?style_wrapper=1&UDnMqz_hide_my_wp=1234 last;rewrite ^/skin/style\.css /nothing_404_404?UDnMqz_hide_my_wp=1234 last;rewrite ^/skin/(.*) /wp-content/themes/twentytwenty/$1?UDnMqz_hide_my_wp=1234 last;rewrite ^/ajax /wp-admin/admin-ajax.php?UDnMqz_hide_my_wp=1234 last;rewrite ^/inc/(.*) /wp-content/$1?UDnMqz_hide_my_wp=1234 last;rewrite ^/(readme\.html|license\.txt|wp-content/debug\.log|wp-includes/$)/nothing_404_404?UDnMqz_hide_my_wp=1234 last;rewrite ^/(((wp-content|wp-includes)/([A-Za-z0-9\-\_\/]*))|(wp-admin/(!network\/?)([A-Za-z0-9\-\_\/]+)))(\.txt|/)$ /nothing_404_404?UDnMqz_hide_my_wp=1234 last;
# END Hide My WP
It says that we have put these lines before the :try_files $uri $uri/ /index.php?q=$uri&$args;
As we would like to do this in only 1 site, we tried to create the file : rules-nginx.conf in our /var/www/site directory, and added these lines, but it is not working...We tried to understand how with your documentation, but we have to say that we are getting a bit "lost" :/Could you please tell us how to add these "rewrite rules" line for only 1 site ? After that, do we have to restart the nginx server ? And how ? (because we saw the "restart" command, but we are afraid to reset all settings, and not just save the new ones added...Thanks for your support, and for Webinoly !!Regards
First of all, you are doing it great. When you add a file with custom Nginx rules in Webinoly, these rules are the last thing to be loaded, so I'm pretty sure they are not before the "try" directive, I don't know why your plugin is throwing that message.
Nginx should always be restarted to changes take effect: sudo nginx -t && sudo service nginx reload
Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.