Skip to content

Commit 87810ca

Browse files
committed
feat: Add canonical URL and enforce non-www domain
- Configure Nginx to redirect www.rectorspace.com → rectorspace.com (301) - Add canonical link tag in layout for SEO clarity - All variants (http/https, www/non-www) now redirect to https://rectorspace.com - Prevents duplicate content penalty from search engines - Consolidates SEO authority to single domain
1 parent 318c814 commit 87810ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/views/layouts/application.html.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<%= csrf_meta_tags %>
1010
<%= csp_meta_tag %>
1111

12+
<%# Canonical URL for SEO - always use non-www %>
13+
<link rel="canonical" href="https://rectorspace.com<%= request.path %>">
14+
1215
<%= yield :head %>
1316

1417
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>

0 commit comments

Comments
 (0)