admin管理员组文章数量:1122832
I have a new install of WordPress on my Mac mini server. The site uses SSL and has a valid up to date certificate from StartCom.
The site loads, but with no CSS or theme.
Mainly, I can't get into wp-admin (or wp-login.php) as it redirects with two 301 redirects and then multiple 302 redirects. I used to find out what was happening, but now I don't know how to fix the redirects.
Here is my .htaccess
# 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
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I have a new install of WordPress on my Mac mini server. The site uses SSL and has a valid up to date certificate from StartCom.
The site loads, but with no CSS or theme.
Mainly, I can't get into wp-admin (or wp-login.php) as it redirects with two 301 redirects and then multiple 302 redirects. I used http://redirectdetective.com to find out what was happening, but now I don't know how to fix the redirects.
Here is my .htaccess
# 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
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Share
Improve this question
asked Jan 15, 2016 at 18:19
DennisDennis
211 gold badge1 silver badge2 bronze badges
4 Answers
Reset to default 0I think you want to force everything to go over https, is that right?
If so I'd remove your rewrite rule, make sure that that allows you to access admin (over http) and then use the WordPress HTTPS (SSL) plugin instead. It allows you to configure how SSL is used by WordPress, and I think you will find it easier to manage.
I had an issue similar to this where I had multiple 302 redirects for getting into the wp-admin pages. In the end the problem was after a migration the permissions had somehow changed. Ensure the wp-admin directory is executable.
Mostly its a folder permission issue, change "wp-admin" folder permeations to be 777 and then test admin interface if it works undo permeations changes to 755 test again it should works fine,
Try these
- Remove the htaccess rules
- Make sure wp-admin works on http
- change your site and home url and add https://
This should work for you, try and inspect the page and see what errors are there in the console for ex. which requested urls or resources are giving you those nasty redirects.
本文标签: wpadmin 302 redirects
版权声明:本文标题:wp-admin 302 redirects 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736283453a1926974.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论