learning_curve
Golden Pleskian
BTW As part of this, if anyone is sharp at .htaccess > Nginx conversions, can they figure this one out?
In a simple .htaccess file, it's this:
In "converted" Nginx code, it's currently this
which works but only permanent, as opposed to conditional on the provided IP address (as the .htaccess file is). It's a one off addition / requirement, on one domain and as such, certainly not an area of expertise for us!
In a simple .htaccess file, it's this:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Re-Direct
Options +FollowSymlinks
RewriteCond %{REMOTE_ADDR} !=*IP Address*
RewriteRule ^(.*)$ https://*New URL* [R=301,L]
</IfModule>
In "converted" Nginx code, it's currently this
Code:
if ($remote_addr !~ "=*IP Address*"){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/(.*)$ https://*New URL* permanent;
}