fix: add trailingSlash for clean URLs, rename /legal/ to /policies/ (cPanel blocks /legal/ path)

- next.config.ts: enable trailingSlash:true so Next.js generates /page/index.html
  instead of /page.html, enabling Apache DirectoryIndex to serve clean URLs
- Rename src/app/legal/ to src/app/policies/ because cPanel/Apache blocks
  the /legal/ URL path (returns 403 regardless of file permissions)
- Update Footer.tsx and terms page links from /legal/ to /policies/
- .htaccess: add DirectoryIndex directive for subdirectory index.html serving
- All 15 pages verified live on dashcaddy.net returning HTTP 200
This commit is contained in:
Krystie
2026-08-13 10:47:27 -07:00
parent 843d85519f
commit 8c4aeb6065
5 changed files with 7 additions and 3 deletions
+3
View File
@@ -1,3 +1,6 @@
# Enable directory index resolution (serves index.html from subdirectories)
DirectoryIndex index.html index.html.var
# Redirect old doc paths to new ones — using RewriteRule for broader compatibility
<IfModule mod_rewrite.c>
RewriteEngine On