SEO: comprehensive search engine optimization for bilhej.se
Adds 7 SEO improvements across the full stack:
1. Enhanced index.html:
- Open Graph tags (og:title, og:description, og:image, og:locale sv_SE)
- Twitter Card tags (summary_large_image)
- Canonical URL (https://bilhej.se/)
- Meta keywords, author, robots, language tags
- Structured data in JSON-LD (Organization, WebSite, Service, FAQPage)
- FAQ structured data with 4 Q&A pairs (pris, anonymitet, hur funkar det)
- Preconnect hints for analytics origin
2. robots.txt:
- Disallow: auth pages, admin, orders, payment, guest pages
- Allow: public pages (/, /om-oss, /kontakt, /integritetspolicy, /villkor)
- Crawl-delay: 10s
- Points to sitemap
3. sitemap.xml:
- 6 public URLs with proper changefreq and priority
- Home (1.0), Om (0.7), Kontakt (0.6), GDPR/Villkor (0.5)
4. useSeo composable:
- Dynamic document.title, meta description/OG/Twitter on route change
- Canonical URL updates per page
- Reset fallback for unnamed routes
5. Route-level SEO data:
- 16 routes with unique title, description, keywords
- Covers all public pages + key auth pages
6. App.vue: wired useSeo with route.name watcher (immediate: true)
7. nginx.conf:
- Security headers: X-Frame-Options DENY, X-Content-Type-Options,
X-XSS-Protection, Referrer-Policy, Permissions-Policy, HSTS
- Far-future cache (1y, immutable) for static assets
- No-cache for robots.txt and sitemap.xml
- Deny access to dotfiles
- Stronger gzip config