Add secure public directory structure with .htaccess

- Created public/ directory for web-accessible files
- Moved content and assets to public/ subdirectories
- Added .htaccess files for security and routing
- Updated config.php to use public/content path
- Blocked direct access to PHP files and sensitive directories
- Added URL routing to index.php
- Enhanced security headers and PHP settings
This commit is contained in:
2025-11-19 14:00:03 +01:00
parent bd0f6ecbfc
commit 2e5672ee60
12 changed files with 381 additions and 6 deletions

View File

@@ -155,6 +155,13 @@
font-size: 0.9rem;
color: #6c757d;
}
.site-info a {
color: #0d6efd;
text-decoration: none;
}
.site-info a:hover {
text-decoration: underline;
}
.search-form {
max-width: 300px;
}
@@ -242,7 +249,7 @@
{{file_info}}
</div>
<div class="site-info">
<small class="text-muted">Powered by CodePress CMS</small>
<small class="text-muted">Powered by <a href="https://git.noorlander.info/E.Noorlander/CodePress.git" target="_blank" rel="noopener">CodePress CMS</a></small>
</div>
</div>
</div>