Panel 404 Error on Live Server, Works Fine Locally

I’ve been developing a site locally and just uploaded it to a server. All pages work fine locally, including the panel. On the server, all pages work fine except for the panel page, which throws a 404.

Here’s my htaccess file, where I tried the “Options -Multiviews” and “RewriteBase /” tips. I tried looking for the httpd conf Apache config file but haven’t been able to locate it (I’m using shared hosting with NameCheap, if that helps).

# Kirby .htaccess
#Fix Rewrite
 Options -Multiviews
# rewrite rules
<IfModule mod_rewrite.c>
# enable awesome urls. i.e.:
RewriteEngine on

# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder.
# Otherwise links or the entire site will break.
# Set the RewriteBase to:

RewriteBase /

# 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]


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

AuthType Basic  
AuthName "restricted area"  
AuthUserFile /home/abodkncn/public_html/.htpasswd
require valid-user

When you say all pages are working, is that also true for subpages?

Correct, all pages except the panel

Any other suggestions I can try?

If it is true that not only the main pages but subpages do work, maybe an issue with folder/file permissions as described in this post?

Ah yeah — I saw that post but unfortunately changing the file permissions didn’t resolve the issue. Any other ideas?

Have you tried re-uploading the panel to production? Maybe something got corrupted during the upload

Yeah, I even tried uploading a completely unaltered version of the latest version of Kirby (except for adding a single user as per these instructions: but still no luck.

Can you check what your PHP version is?
Also, where on the server are you installing this? Could there be another htaccess somewhere?

Could you also provide a link to the site?

It’s installed in a default public_html folder in the root, which is where I have installed other sites using this host in the past.
I couldn’t find another .htaccess file.
Server was running php version 5.6.24, just changed it to 7.0.9. Site is located at (info at

This is strange. I’d say it can’t be the .htaccess, because subpages are working, but nevertheless, could you pls. try to put some nonsense into the .htaccess to make sure it is working?

It almost looks like the panel folder is non-existent or empty!

Sorry, I was in the middle of renaming the panel folder to see if that resolves some unknown namespace conflict. One sec…

Ok, now we have a nice Error 500 on everything :slight_smile:

OK, renamed Panel folder back to normal. Adding gibberish to the .htaccess file threw a 500 error on everything as expected.

Ok, that’s good. And the panel folder is also filled with stuff now. But still all we get is the error page :cry:

:sob: I’m out of ideas

1 Like

Have you ever tried to set the url in your config.php:

c::set('url', '');

This is just trying things out now … as I’m clueless as to what could be causing this.

Ever thought of changing your hosting provider?

Also, have you tried to comment out the RewriteBase?

Tried the config.php and RewriteBase ideas, no luck. I’ll try another host…