Can't Login Into Panel

Hello Kirby Friends i have a Problem, i cant Login into The Panel, i’m Typing my Right Account Details but i Cant Login :confused: What can i do?, Do You Think The Problem is in my .htaccess File This is my .htaccess File
i Hope you Can Help Me. Thanks :slight_smile:

# Kirby .htaccess

# rewrite rules
<IfModule mod_rewrite.c>
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.(\d+)\.(js|css)$ $1.$3 [L]


# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder.
# Otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite
# Set the RewriteBase to:
#
# RewriteBase /mysite

# block text files in the content folder from being accessed directly
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]

# block all files in the site folder from being accessed directly
RewriteRule ^site/(.*) index.php [L]

# block all files in the kirby folder from being accessed directly
RewriteRule ^kirby/(.*) index.php [L]

# make panel links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^panel/(.*) panel/index.php [L]

# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

</IfModule>

# Additional recommended values
# Remove comments for those you want to use.
#
# AddDefaultCharset UTF-8
#
# php_flag short_open_tag on

Your link to the panel and all subpages do work, I guess? Do you get any error messages?

Yes My Subpages Working, and no i dont get any Error Messages

Have you made any changes to the original .htaccess?

Yes Yesterday i have

# make panel links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^panel/(.*) panel/index.php [L]

Changed to

# make panel links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^backend/(.*) backend/index.php [L]

And Today i have add This Line

<ifmodule mod_rewrite.c="">

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</ifmodule>

Does it work if you remove the https rewrite rules?

Edit: you may want to check out this post: Permanent panel logout on https connection on Uberspace

You Mean

<ifmodule mod_rewrite.c="">

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</ifmodule>

i have try it but now, its Still The Same

I Can not Find the solution :confused:

Edit: i dont use Uberspace

Pls. try if it works properly with the original .htaccess without any custom changes first.

i have try it Whit The Original .htaccess File From The Starterkit, but its Still The Same, and i have Clear my Chache and Cookies but it Doesent Work

What does that mean? It never worked in the first place? Or: the error only occurred after you made some changes?

@texnixe its Working Now :smiley: , i have Check it Late

Great that it works now.

In the future, please always describe what exactly you did, what you expected and what the actual result was (for example a blank page, error message etc.). That helps a lot when finding the issue.

1 Like

Thanks Lukas, i will Give my Best To Make my Post’s Helpfull and Easier to Understand