Forums / Basic Configuration / how to change url from http://myshop.com to http://www.myshop.com ?

how to change url from http://myshop.com to http://www.myshop.com ?

Locked

Started by mataleo on 17 Aug 2010, 7:39 PM · Views: 1,536

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
17 Aug 2010, 7:39 PM
#1
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

how to change url from http://myshop.com to http://www.myshop.com ?

hi,
anyone know how to change url from http://myshop.com to http://www.myshop.com ?

to be main url

cuz i got set it up somewhere without www? why is that ?

what file to edit ?

it generates links in sitemapxml without www.

is it any difference to the search engines? :clap:

thanks

17 Aug 2010, 7:59 PM
#2
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: how to change url from http://myshop.com to http://www.myshop.com ?

curl -s :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head> <title>SiteMapXML : Vodeoo, Wholesale Electronic Gadgets and Top Designer Clothes.</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="Shoes Electronics shoes, clothes, t-shirt, adidas, nike, superdry, Calvin Klein, ED HARDY, Ben Sherman, D&G, Crosshatch, electronics, gadgets, dvd, gps, chinese wholesale, china dropship, china electronics, cheap electronics SiteMapXML" /> <meta name="description" content="Vodeoo : SiteMapXML - Shoes Electronics shoes, clothes, t-shirt, adidas, nike, superdry, Calvin Klein, ED HARDY, Ben Sherman, D&G, Crosshatch, electronics, gadgets, dvd, gps, chinese wholesale, china dropship, china electronics, cheap electronics" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, <http://www.zen-cart.com> eCommerce" />

<base href="http://vodeoo.com/" />

What last line is? what file is it in? :clap:

17 Aug 2010, 9:28 PM
#3
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: how to change url from http://myshop.com to http://www.myshop.com ?

Sounds like you need to add this to your .htaccess file:

###################Canonical WWW Correction###########################
RewriteCond %{http_host} ^domainname.com [nc]
RewriteRule ^(.*)$ http://www.domainname.com/$1 [r=301,nc]

RewriteCond %{SERVER_PORT} ^443$

18 Aug 2010, 7:29 AM
#4
kenichi avatar

kenichi

Zen Follower

Join Date:
Oct 2008
Posts:
252
Plugin Contributions:
0

Re: how to change url from http://myshop.com to http://www.myshop.com ?

in the files configure.php (/includes and /admin) add www. to the domains so it looks like http://www.mysite.com instead of http://mysite.com

18 Aug 2010, 7:48 AM
#5
customgfx avatar

customgfx

New Zenner

Join Date:
Jun 2009
Location:
UK
Posts:
16
Plugin Contributions:
0

Re: how to change url from http://myshop.com to http://www.myshop.com ?

i was after the same thing many thanks,

update
tried to upload the files after editing but says error do i need to change chmod attributes for protected folder?

www.motorcycleracedecals.com
Motorcycle Stickers Decals Graphics

18 Aug 2010, 9:46 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: how to change url from http://myshop.com to http://www.myshop.com ?

The configure files are normally (should be) set to read only, so you can't just upload new versions. You will need to change the permissions to allow you to overwrite them (or more risky but quicker if you're confident, delete them) before uploading your new versions. Don't forget to ensure that your new versions are also set to read-only once in place.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 Aug 2010, 9:32 PM
#7
mataleo avatar

mataleo

New Zenner

Join Date:
Aug 2010
Posts:
34
Plugin Contributions:
0

Re: how to change url from http://myshop.com to http://www.myshop.com ?

Kenichi:

in the files configure.php (/includes and /admin) add www. to the domains so it looks like http://www.mysite.com instead of http://mysite.com

fixed thanks