Does not work .htaccess redirect from IP address to domain

KRV

New Member
#1
Hi!
I have some problem with .htaccess redirect.

I use CyberPanel with OLS as web-server + CMS Wordpress (Litespeed Cache plugin enabled).

I want do IP canonicalization: create redirect from IP address web-server to main domain.

I already added in .htaccess file rewrite rules:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^3\.15\.163\.168$
RewriteRule .* https://sport24.pp.ua [R,L]

But they are does not work.

Please, help me. What i do wrong?
Will be very thankfull for any support.
 

KRV

New Member
#3
Hi,
Rules look okay to me, have you tried to restart the web server to reload the rules?
Code:
service lsws restart
already restarted. but nothing changes...
i think, something blocked rewrite rules. maybe, LS Cache plugin for WP.
 
Top