Hi all
.htaccess related.
I have just migrated from many years hosted on Apache servers to Litespeed.
I have NO access to any Litespeed server settings.
I believe that RewriteMap is not supported on Litespeed so I am now at a loss.
I used to use this example code in my .htaccess on Apache, but now the host does not allow %{REMOTE_HOST}
RewriteCond %{REMOTE_HOST} ^example\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/wp-login\.php$
RewriteRule ^(.*)$ /blackhole.html [L]
I am accessing my site from a dynamic IP address so have written a script to obtain my current IP address to a filename: /home/xxx/public_html/currentip
I now need a way of reading that ip address contained within currentip, and using it for the request_uri and rewriterule above to work.
Thanks in advance.
.htaccess related.
I have just migrated from many years hosted on Apache servers to Litespeed.
I have NO access to any Litespeed server settings.
I believe that RewriteMap is not supported on Litespeed so I am now at a loss.
I used to use this example code in my .htaccess on Apache, but now the host does not allow %{REMOTE_HOST}
RewriteCond %{REMOTE_HOST} ^example\.com$ [NC]
RewriteCond %{REQUEST_URI} ^/wp-login\.php$
RewriteRule ^(.*)$ /blackhole.html [L]
I am accessing my site from a dynamic IP address so have written a script to obtain my current IP address to a filename: /home/xxx/public_html/currentip
I now need a way of reading that ip address contained within currentip, and using it for the request_uri and rewriterule above to work.
Thanks in advance.