404 error after site migration

i shifted a multisite from clouodways to cyberpanel installed on digital ocean

  • i changed dns settings to point to new server
  • but it does nt work, its showing

i think there’s some problem in htaccess may be?
how do i fix this, considering i don’t have access to my wp-admin
and no page is opening

kindly let me know
thanks!

Hello @priyankeshu

Check your ReWrite Rules under Manage Website. Post screenshot or copy paste here

BEGIN WordPress

The directives (lines) between “BEGIN WordPress” and “END WordPress” are

dynamically generated, and should only be modified via WordPress filters.

Any changes to the directives between these markers will be overwritten.

RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

MalCare WAF

<Files “.user.ini”>

Require all denied

<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all

END MalCare WAF

Replace with

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>