Wp admin site is inaccessible

Hi

I recently started hosting my website but I can’t go into the admin to make changes to the website. please help me out.

https://medicotopics.xyz/wp-admin/

Hello there,

It seems like your site is having a redirect loop issue.

Try inserting this code/rule into your .htaccess file in the /htdocs folder:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

And make sure to seperate this code with the other codes/rules present in the .htaccess file or else your site will generate an HTTP Error 500.

Clear your browser cache once you’ve done making your changes and check your admin dashboard if the issue is still present.

Yep. @UnknownLolz was right. It’s a redirect loop. If his solution didn’t work, reply again! (I have a not recommended solution)

Basically I never had the .htaccess file inside the htdocs, now I created it and pasted one which @UnknownLolz suggests but it still isn’t working. I also want you guys to know that I don’t have any other code in the .htaccess apart from the one I just added.

Maybe this article should help you:

5 Likes

@Ergastolator1 Thank you, it works

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.