Quantcast
Viewing all articles
Browse latest Browse all 2456

[3.3.x] Support Forum • How to redirect all domain.com requests to www.domain.com

So after much drama my site is backup

However a bunch of the links are brooke and the main domain (without www ie domain.com) goes to a root folder view

I would now like to force www on any url attempts that look like domain.com or domain.com/topic etc

I've changed by .htaccess file to do this but it doesn't seem to be working.

Code:

# Redirect non-www to www:RewriteCond %{HTTP_HOST} ^.forum.com$ [NC]RewriteRule (.*) https://www.forum.com/$1 [L,R=301]
Is it only the .htacces file that manages this? Do I have to do anything under /etc/apache2/sites-available?

Statistics: Posted by LedricMedric — Fri Oct 11, 2024 10:53 am



Viewing all articles
Browse latest Browse all 2456

Trending Articles