Zen Cart Logo
Forums / General Questions / How to display links as www?

How to display links as www?

Locked

Views: 722

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Nov 2009, 7:46 PM
#1
tester060 avatar

tester060

New Zenner

Join Date:
Nov 2009
Posts:
3
Plugin Contributions:
0

How to display links as www?

1.3.8
new install
no addons

all zen links are displaying as http://domain.com/link

i need them to display as http://www.domain.com/link

i have changed both config.php files for define('HTTP_SERVER' to include www. but this does not change the links.

any ideas?

19 Nov 2009, 9:13 PM
#2
blindeyecreative avatar

blindeyecreative

New Zenner

Join Date:
Nov 2009
Posts:
25
Plugin Contributions:
0

Re: How to display links as www?

Do you have access to your .htaccess? If so, you should just be able to add the following to that file.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^example.com$
RewriteRule (.*) http://

19 Nov 2009, 9:35 PM
#3
tester060 avatar

tester060

New Zenner

Join Date:
Nov 2009
Posts:
3
Plugin Contributions:
0

Re: How to display links as www?

blindeyecreative:

Do you have access to your .htaccess? If so, you should just be able to add the following to that file.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^example.com$
RewriteRule (.*) http://

my concern is that the links will go to http://www.domain.com/link but the code will remain <a href="http://domain.com/link>link</a>

20 Nov 2009, 3:33 PM
#4
tester060 avatar

tester060

New Zenner

Join Date:
Nov 2009
Posts:
3
Plugin Contributions:
0

Re: How to display links as www?

is there a setting in the database that needs to be changed or in a different config file?