I wanted my sites to use "www.", since I've read it is more SEO-friendly, therefore I have added the following code to my .htaccess file based on this answer Redirect non-www to www in .htaccess
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
I have two sites using the same project source (it's a content management system). One of them is working fine as it was, on the other one, all of the routes return 404. If I use a route without "www.", it works. How can I make my routes work when my page is fetched with "www."?
Current DNS setup (I've changed my actual domain with "mysite")