Jump to content

Website Address


Guest leeburgess

Recommended Posts

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

Link to comment
Share on other sites

Guest leeburgess

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

Link to comment
Share on other sites

Guest leeburgess

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?

Link to comment
Share on other sites

Guest leeburgess

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.

Link to comment
Share on other sites

Guest Brivtech

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.

Link to comment
Share on other sites

Guest leeburgess

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

Link to comment
Share on other sites

Guest leeburgess

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' ;

?>

Link to comment
Share on other sites

Guest leeburgess

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?

Link to comment
Share on other sites

Guest leeburgess

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.

Link to comment
Share on other sites

Guest Brivtech

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.

Link to comment
Share on other sites

Guest leeburgess

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...