Can not find&open project folder in browser

I just followed The content folder - YouTube this video…
and I made some folders : info… gallery… contact…etc…
but when I put that name after my link, they said :
Oops, looks like the page is lost.
This is not a fault, just an accident that was not intentional.

what is the problem…?? like this:
this is working but…
not working…

Hm, is that the kirby error page? Looks like rewriting doesn’t work. Is the .htaccess file present on the server? Is rewriting enabled?

Hi! thanks!
I copied this :slight_smile:

# Kirby .htaccess

# 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.
# If your homepage is
# Set the RewriteBase to:
# RewriteBase /mysite

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

# block all files in the site folder from being accessed directly
RewriteRule ^site/(.*) error [R=301,L]

# block all files in the kirby folder from being accessed directly
RewriteRule ^kirby/(.*) error [R=301,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

but still not working…

If you put some random characters into that .htaccess file, does the site break?

Sorry I don’t understand what you mean… I just searched default htaccess file… should I edit this???

The .htaccess file is part of a Kirby Starterkit. It must be transferred to the server together with the other files (if your server is an Apache server). Note that because of the starting dot, this file is usually not visible in the filesystem, unless you enable invisible files. On a Mac, you can press CMD+Shift+. to make them visible.

But in order for this file to do its job, the Apache mod_rewrite module must be present and enabled.

You can test this by putting some rubbish into this file. If you do so, e.g. put “abc” at the top of the .htaccess file on the server and nothing happens, the file is ignored.

If this happens and you don’t have control over the server (as on shared hosting), you have to contact the hosting provider (because URL rewriting is a requirement, see Get up and running | Kirby CMS). If you have your own server, you have to fix your server configuration.