Guest leeburgess Posted April 13, 2008 Share Posted April 13, 2008 Does anyone know how to make cubecart use www. instead of http:// Thanks Quote Link to comment Share on other sites More sharing options...
kinetic Posted April 13, 2008 Share Posted April 13, 2008 first download a copy of your includes/global.inc.php then edit to make sure the storeURL uses the www Example in includes/global.inc.php $glob['storeURL'] = 'http://www.yoursite.com/store'; or if in your sites root $glob['storeURL'] = 'http://www.yoursite.com'; then if you are using the SEO module download the htaccess file open it in word pad and add this rule after the line: RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301] replace your_domain with what ever your domain is and save and upload if you arent using the SEO module you can still do this just add the rule and the rewrite engine on line RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301] replacing "your_domain" with your domain Hope this helps Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 14, 2008 Share Posted April 14, 2008 first download a copy of your includes/global.inc.php then edit to make sure the storeURL uses the www Example in includes/global.inc.php $glob['storeURL'] = 'http://www.yoursite.com/store'; or if in your sites root $glob['storeURL'] = 'http://www.yoursite.com'; then if you are using the SEO module download the htaccess file open it in word pad and add this rule after the line: RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301] replace your_domain with what ever your domain is and save and upload if you arent using the SEO module you can still do this just add the rule and the rewrite engine on line RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301] replacing "your_domain" with your domain Hope this helps Got stuck on the 2nd part where is the htaccess file I am not using the SEO mod. Cheers Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 16, 2008 Share Posted April 16, 2008 first download a copy of your includes/global.inc.php then edit to make sure the storeURL uses the www Example in includes/global.inc.php $glob['storeURL'] = 'http://www.yoursite.com/store'; or if in your sites root $glob['storeURL'] = 'http://www.yoursite.com'; then if you are using the SEO module download the htaccess file open it in word pad and add this rule after the line: RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301] replace your_domain with what ever your domain is and save and upload if you arent using the SEO module you can still do this just add the rule and the rewrite engine on line RewriteEngine on RewriteCond %{HTTP_HOST} !^www.your_domain.com$ RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301] replacing "your_domain" with your domain Hope this helps Got stuck on the 2nd part where is the htaccess file I am not using the SEO mod. Cheers anyone? Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 17, 2008 Share Posted April 17, 2008 You dont need to the htaccess file so long as your global.inc.php file is correct. It is but it still changes to http:// instead of www. Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted April 17, 2008 Share Posted April 17, 2008 Doesn't every web address have http:// before it? Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 17, 2008 Share Posted April 17, 2008 Doesn't every web address have http:// before it? yes but it is not working that well as my ssl cert is for www.blau and not for http://blau Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted April 17, 2008 Share Posted April 17, 2008 could that be because SSL creates https:// and this is done automatically by the system depending on whether SSL is set or not, and on what page you're viewing? I don't think I'm understanding the full depth of the problem here. Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 17, 2008 Share Posted April 17, 2008 could that be because SSL creates https:// and this is done automatically by the system depending on whether SSL is set or not, and on what page you're viewing? I don't think I'm understanding the full depth of the problem here. I need cubecart to use www.mystore.co.uk and not http://mystore.co.uk Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 17, 2008 Share Posted April 17, 2008 You will always have http:// whether you are using www. or not and thats nothing you can change. SSL certs should be installed on http:// because www. is considered a seperate domain (thanks for pointing that out Will ). Can you post the contents of /includes/global.inc.php please but delete the database details? <?php $glob['dbdatabase'] = '*****1' ; $glob['dbhost' ] = 'localhost' ; $glob['dbusername'] = '*******' ; $glob['dbpassword'] = '******' ; $glob['dbprefix' ] = '' ; $glob['installed' ] = '1' ; $glob['rootDir' ] = '/home/bws/public_html/store' ; $glob['rootRel' ] = '/store/' ; $glob['storeURL' ] = 'http://www.********.co.uk/store' ; ?> Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 17, 2008 Share Posted April 17, 2008 Do as post 2 suggests and create a .htaccess file with the content in his second quote. I have but then it doesnt goto the store it just goes to www.mystore.co.uk any idea? Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 17, 2008 Share Posted April 17, 2008 Have you actually changed the domain part to your actual domain? I have but do I have to put RewriteEngine on RewriteCond %{HTTP_HOST} !^www.mystore.co.uk/store$ RewriteRule ^(.*)$ http://www.mystore.co.uk/store$1 [R=301] Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 18, 2008 Share Posted April 18, 2008 Have you actually changed the domain part to your actual domain? I have but do I have to put RewriteEngine on RewriteCond %{HTTP_HOST} !^www.mystore.co.uk/store$ RewriteRule ^(.*)$ http://www.mystore.co.uk/store$1 [R=301] Lets use cubecart.com as an example, it should then be: RewriteEngine on RewriteCond %{HTTP_HOST} !^www.cubecart.com/site$ RewriteRule ^(.*)$ http://www.cubecart.com/site [R=301] I have now done that but firefox says The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 19, 2008 Share Posted April 19, 2008 I just checked in Admin Settings and under Absolute SECURE URL to store: It still shows https://mystore.co.uk where is this stored? Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted April 19, 2008 Share Posted April 19, 2008 In General Settings > Directories & Folders Check these settings (I'm using "example" as your domain name, and assuming that you have cubecart installed in a folder called "store") HTTP Root Relative Path: / HTTP Absolute URL: http://www.example.com/store If you are using SSL: Force SSL: No HTTPS Root Relative Path: /store/ HTTPS Absolute URL: https://www.example.com/store Be careful where you place /'s NOTE: Underneath this section is says: * This textbox is for reference only. To change the value please edit includes/global.inc.php So, you will need to do as it says to change the values that have a (*) next to them if you need to. Also, be aware of file permissions. Don't worry about the root paths, these are generated automatically, and are usually reliable. Also, check with your SSL certififcate provider that the certificate was taken for www.example.com, and not example.com on its own. Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 19, 2008 Share Posted April 19, 2008 In General Settings > Directories & Folders Check these settings (I'm using "example" as your domain name, and assuming that you have cubecart installed in a folder called "store") HTTP Root Relative Path: / HTTP Absolute URL: http://www.example.com/store If you are using SSL: Force SSL: No HTTPS Root Relative Path: /store/ HTTPS Absolute URL: https://www.example.com/store Be careful where you place /'s NOTE: Underneath this section is says: * This textbox is for reference only. To change the value please edit includes/global.inc.php So, you will need to do as it says to change the values that have a (*) next to them if you need to. Also, be aware of file permissions. Don't worry about the root paths, these are generated automatically, and are usually reliable. Also, check with your SSL certififcate provider that the certificate was taken for www.example.com, and not example.com on its own. I only have Directories & Folders Root SECURE Public HTML Folder to store: e.g. /store/ (Include Trailing Slash) Absolute SECURE URL to store: e.g. https://secure.domain.com/store (Excluding Trailing Slash) Enable SSL: (Warning: This change takes place immediately after submit. Please ensure your secure Root Directory and Secure URL are correct and working before setting this to Yes) Quote Link to comment Share on other sites More sharing options...
Guest leeburgess Posted April 19, 2008 Share Posted April 19, 2008 Now it works thanks for all your help guys :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.