http://mystore but I would prefer http://www.mystore

How would I go about sorting this out?



If I manual add a www it displays the correct page but then when I click on link it loses the www bit again.



Some may say does it matter - including myself BUT I do prefer the www being visible in the url.

Check config.php and make sure that you have the “www.” as part of your CS-Cart host domain:


// Host and directory where cs-cart is installed on usual server
$cscart_http_host = [COLOR="Red"]'%HTTP_HOST%'[/COLOR];
$cscart_http_dir = '%HOST_DIR%';

// Host and directory where cs-cart is installed on secure server
$cscart_https_host = '[COLOR="Red"]%HTTPS_HOST%[/COLOR]';
$cscart_https_dir = '%HOST_DIR%';




Bob

Sorted - one off the list. :stuck_out_tongue:

To ensure you don’t “leak” Google Pagerank, you’ll also want to add the following to the .htaccess file. Replace site.com with your domain name. Be sure to maintain the \ in the first line.



RewriteCond %{HTTP_HOST} ^site\.com [NC]
RewriteRule ^(.*)$ http://www.site.com$1 [L,R=301,QSA]




If someone types in http://site.com, they will be redirected to http://www.site.com (this includes search engines and prevents them from viewing both urls as separate domains, penalizing you for duplicate content). In other words, rather than having 3000 pages on site.com and 5000 pages on www.site.com, you’ll get 8000 pages on www.site.com and rank better.

Would it affect my ranking if my .httpaccess had: this instead of the full web address?


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php?sef_rewrite=1 [L,QSA]