Howdy, I’ve been requested to work out a way to redirect MySite.com to www.MySite.com. ( Search Engine Optimization )
I have used this method in the default .htaccess file.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^MySite.coml [NC]
RewriteRule ^(.*)$ http://www.MySite.com/$1 [L,R=301]
This caused 404’s ( within the ModX environment) before I commented out this line....
# RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Not knowing hardly anything about .htaccess I thought I’d post a quick thread, in case someone knows of a better way to achieve what I am trying to do, perhaps within the ModX configuration, or in the highly likely case that someone sees potential problems caused by my playing around where I probably shouldn’t be.
Comments about the worthwhileness of this endeavour in respect to SEO are also welcome.