Replace v1 with v2 codebase

Full rewrite: swap out the v1 framework (src/, controllers/, views/,
twig/, sass/, skeleton/) for the working v2 codebase from phpproject
(App/, novaconium/, public/).
This commit is contained in:
code
2026-07-14 01:58:25 +00:00
parent d9c4b64d9c
commit fbd4e92e9f
460 changed files with 30107 additions and 4661 deletions
+17
View File
@@ -0,0 +1,17 @@
RewriteEngine On
# 1) Canonical URLs: strip trailing slash (except bare root) — 301 for SEO.
RewriteCond %{REQUEST_URI} ^/.+/$
RewriteRule ^(.+)/$ /$1 [R=301,L]
# 2) Serve pre-rendered static cache file directly, bypassing PHP entirely.
RewriteCond %{DOCUMENT_ROOT}/cache/$1/index.html -f
RewriteRule ^(.*)$ /cache/$1/index.html [L]
# 3) Serve real files/directories as-is (css, cache assets, etc.).
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
# 4) Everything else goes through the front controller.
RewriteRule ^ index.php [L]