Forums / Templates, Stylesheets, Page Layout / Domain name question

Domain name question

Locked

Started by flex22 on 21 May 2007, 1:46 PM · Views: 4,890

Results 1 to 20 of 40
This thread is locked. New replies are disabled.
21 May 2007, 1:46 PM
#1
flex22 avatar

flex22

New Zenner

Join Date:
Apr 2007
Location:
UK
Posts:
95
Plugin Contributions:
0

Domain name question

Currently to get to my store I need to add /shop to the end of my domain name.
However I would like it so that via my domain nam only, I can access the store.
In other words I want my store front to be the home page.
How do I do that?

Thanks in advance

21 May 2007, 4:32 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

Flex, in order to do this, you need to move all the contents from the folder "shop" into the main directory, "www", "pub", "public", whichever it may be. you will, then, need to edit the admin/includes/configure.php and includes/configure.php to reflect this change. eg; remove the "shop" from the path, in both of these files.

Hope this helps.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

21 May 2007, 4:59 PM
#3
flex22 avatar

flex22

New Zenner

Join Date:
Apr 2007
Location:
UK
Posts:
95
Plugin Contributions:
0

Re: Domain name question

OK, there seems to be a lot of places where it says shop in the configure file.Do you know exactly which part I have to delete the word 'shop' from?

Thanks!

21 May 2007, 6:18 PM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

Oh, yea. All of them. As your site will no longer be in that folder, ANY reference to that particular folder will result in an error being shown, instead of your site.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

21 May 2007, 6:25 PM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

Edit: except for this one, unless you want to change your database.

define('DB_DATABASE', 'shop');

It may say something else, depending on what you named your database, but you DON'T want to change this entry on either file. The rest you can change.
Sorry. Forgot about that one.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

21 May 2007, 6:43 PM
#6
rwment avatar

rwment

Zen Follower

Join Date:
Apr 2007
Location:
Whitehouse, Texas
Posts:
126
Plugin Contributions:
0

Re: Domain name question

Well there is an easier way, you can do a permanent redirect on the default index page.

If you don't "got-it", then we will get it for you at www.Got-Its.com

21 May 2007, 6:56 PM
#7
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

Yea, you could, but.............that's kinda cheesy, ain't it? Using a redirection script scares some people off, as they don't trust a place that redirects their traffic, plus you're adding another 5-6 seconds load time, when the general population won't wait that long. By the time it gets redirected, the shop loads up.....they're gone!
Now, that my just be my opinion, but I don't think so. I think you'll find a lot of people, in and out, of this forum, that agrees with me on this issue.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

21 May 2007, 7:23 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,732
Plugin Contributions:
0

Re: Domain name question

... and unless you do a bunch of URL rewriting you still see the subdirectory in the browser address bar when you do a redirect.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

21 May 2007, 7:53 PM
#9
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Domain name question

I agree that the re-direct is kind of cheesy but if you use PHP as opposed to a meta-refresh the change seems almost transparent, and it doesn't add the 5-6 seconds either. Well, at least not as far as I can tell.

<?php header ('Location: /store'); ?>

Is what I have used in the past.

Samuel Turnmire
co-Founder
geekFoundry

21 May 2007, 7:55 PM
#10
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Domain name question

flex22:

OK, there seems to be a lot of places where it says shop in the configure file.Do you know exactly which part I have to delete the word 'shop' from?

Thanks!

If you go this route using the 'Find and Replace' might make your life easier.

Samuel Turnmire
co-Founder
geekFoundry

21 May 2007, 9:21 PM
#11
rwment avatar

rwment

Zen Follower

Join Date:
Apr 2007
Location:
Whitehouse, Texas
Posts:
126
Plugin Contributions:
0

Re: Domain name question

Actually it isn't cheesy at all. I use an index.php page instead of a index.html page:

<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: <http://www.got-its.com/zencart/>" ); ?> <HTML> <HEAD> <TITLE>Your Title</TITLE> </HEAD> <BODY> <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: <http://www.got-its.com/zencart/>" ); ?>

Google loves it as I use their HTML method of verification and I didnt have to move my file structure around or alter my config files.

The only difference the consumer sees is the addition of a subdirectory on their address bar.

Of course having your store in your root folder is ideal but those of us that already have a crapload of stuff there for other things it is not always feasible, that and the fact that I try not to alter the config files if I dont have to.

If you don't "got-it", then we will get it for you at www.Got-Its.com

22 May 2007, 9:30 AM
#12
flex22 avatar

flex22

New Zenner

Join Date:
Apr 2007
Location:
UK
Posts:
95
Plugin Contributions:
0

Re: Domain name question

ok so what would I put in this part to replace shop:

define('DIR_WS_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');

I can delete shop from some areas and just eave admin, but what about the places where it only says 'shop'? ie: after CATALOG.

Thanks!

22 May 2007, 11:48 AM
#13
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: Domain name question

flex22:

ok so what would I put in this part to replace shop:

define('DIR_WS_ADMIN', '/shop/admin/');
define('DIR_WS_CATALOG', '/shop/');
define('DIR_WS_HTTPS_ADMIN', '/shop/admin/');
define('DIR_WS_HTTPS_CATALOG', '/shop/');

I can delete shop from some areas and just eave admin, but what about the places where it only says 'shop'? ie: after CATALOG.

Thanks!

If I'm understanding you correctly . . . you would change

define('DIR_WS_ADMIN', '/shop/admin/');

to

define('DIR_WS_ADMIN', '/admin/');

Make sense?

Samuel Turnmire
co-Founder
geekFoundry

22 May 2007, 11:59 AM
#14
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

That's exactly right. You don't need to replace "shop".......just get rid of it.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

22 May 2007, 12:02 PM
#15
flex22 avatar

flex22

New Zenner

Join Date:
Apr 2007
Location:
UK
Posts:
95
Plugin Contributions:
0

Re: Domain name question

I need to be sure before I f%$£ anything else up.Zen cart seems like a harder slog than I had envisioned so far.Who knows, maybe it'll get lighter :blink:

22 May 2007, 12:06 PM
#16
flex22 avatar

flex22

New Zenner

Join Date:
Apr 2007
Location:
UK
Posts:
95
Plugin Contributions:
0

Re: Domain name question

So where it says:

define('DIR_WS_HTTPS_CATALOG', '/shop/');

Just get rid of 'shop' and leave nothing then???

22 May 2007, 12:45 PM
#18
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

Correct. That way, it just points to the "root" of your host site, and not to "shop". which after the move, won't exist.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

22 May 2007, 12:47 PM
#19
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Domain name question

Yes, gj is right (as usual).....you've got to have the "/" there. I was just confirming the deletion of the word "shop". I should have been more clear on that.....sorry.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

22 May 2007, 1:05 PM
#20
flex22 avatar

flex22

New Zenner

Join Date:
Apr 2007
Location:
UK
Posts:
95
Plugin Contributions:
0

Re: Domain name question

Thanks for clearing that up guys.I'll get onto it and report back.