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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user