WordPress not load static files

217 Views Asked by At

Today after installed PolyLang plugin,my wordpress site has a issue:

err_too_many_redirects

so I followed some tutorials to midfield the .htaccess file in cPanel:

before:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

RewriteRule ^$ https://www.ohyanlawgroup.com/home/ [L,R=301]
RewriteEngine On 
# RewriteCond %{HTTPS} off
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.ohyanlawgroup.com/$1 [R,L]

after:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.ohyanlawgroup.com/ [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ohyanlawgroup.com/$1 [R,L]

Now the err_too_many_redirects gone. But the website can only load part of its content, it seems all the static file has not been loaded.

Any friend can help?

0

There are 0 best solutions below