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:
5 files changed
+7
-3
No files matched your search
File renamed without changes.
@@ -59,7 +59,7 @@ export default function TermsPage() {
|
||||
<h2 className="text-2xl font-semibold text-white mb-4">6. Privacy</h2>
|
||||
<p>
|
||||
We collect no data. See our{' '}
|
||||
<a href="/legal/privacy" className="text-brand-400 hover:text-brand-300 font-medium">Privacy Policy</a>{' '}
|
||||
<a href="/policies/privacy" className="text-brand-400 hover:text-brand-300 font-medium">Privacy Policy</a>{' '}
|
||||
for details.
|
||||
</p>
|
||||
</section>
|
||||
@@ -38,8 +38,8 @@ export default function Footer() {
|
||||
links: [
|
||||
{ label: 'Contact', href: 'mailto:support@dashcaddy.net' },
|
||||
{ label: 'Docs', href: '/docs' },
|
||||
{ label: 'Privacy Policy', href: '/legal/privacy' },
|
||||
{ label: 'Terms of Service', href: '/legal/terms' },
|
||||
{ label: 'Privacy Policy', href: '/policies/privacy' },
|
||||
{ label: 'Terms of Service', href: '/policies/terms' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user