Zen Cart Logo
Forums / General Questions / Changing what the url / page name is

Changing what the url / page name is

Locked

Views: 1,929

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
11 Apr 2010, 5:24 AM
#1
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Changing what the url / page name is

At the moment my site is not visible to the public.

I am about to lunch it but can not work out how.

It is all uploaded onto my server contained within the ZenCart folder that I downloaded.

I know I need to change the home page so that it is listed as index so that the public can see it but I'm unsure how to do this.

I'm also unsure about how I stop my site from showing Zen Cart in the URL address.

At the moment my site URL is: http://passionsignite.com.au/zen-cart-v1.3.8a-full-fileset-12112007/

I want it to be just: https://www.passionsignite.com.au

And for none of my pages to menssion the Zen Cart part in the URL.

How do I do this. I have spent weeks trying to get my website the way I like it and I'm a little concerned that I could stuff it up by changing something I shouldn't.

Can anyone help me?

Pleeeease!

Thank you all in advance.

11 Apr 2010, 6:53 AM
#2
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Changing what the url / page name is

You should have installed ZC to the root of your site, not to a folder called /zencart/ in order to not see /zencart/ in the URLs.

You'll have to re-install/move it.

If searchengines have indexed any of the site, you'll also need to set up redirects from old to new URLs as shown in... post #11 in http://www.zen-cart.com/forum/showthread.php?t=150620&page=2

11 Apr 2010, 9:54 AM
#3
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Changing what the url / page name is

First off, take a FULL back up of your site, that means take back ups of all your folders AND your database

Then simply do a reinstall using your root folder as the installation folder, by that I mean your www.passionsignite.com.au folder, basically what you did was to upload the folder zen-cart-v1.3.8a-full-fileset-12112007/ instead of its contents

It's no big deal and easily fixed, there's several articles/FAQ about how to do this (namely doing backups and transferring sites to new servers/folders etc), I have a few of the better ones bookmarked but I'm not on my regular laptop seeing as I forgot the power cable (duh!!) so can't give you the links today, if you can't find the ones I am referring to send me a PM and I'll dig them out tomorrow when I get home

11 Apr 2010, 12:26 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing what the url / page name is

It's a lot easier than that. Backing everything up is a good idea, but the process is mostly just to move all the folders and files from the folder they're in now to the root (a few seconds in your FTP program) and edit both configure.php files to reflect the new path. You may have to run the Fix Cache utility. Instructions here:

https://www.zen-cart.com/tutorials/index.php?article=122

11 Apr 2010, 12:50 PM
#5
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Changing what the url / page name is

If you simply move it, do ensure there's no broken links within the site.

I've seen sites linking from product pages in the /zencart/ folder to images in the form href="../images/someimage.jpg".

Once the site was moved, the .. had to be manually removed from those links.

11 Apr 2010, 1:34 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing what the url / page name is

I would think any relative link should work, but any absolute link http://www.yoursite.com/zencart/something would have to be changed.

16 Apr 2010, 2:36 PM
#7
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

I changed the session directory to: /home/passions/public_html/cache

Then I moved all the folders and files contained within the Zen Cart folder to: home/passions/public_html

I then changed the following files as said to do in the following link: > stevesh:

https://www.zen-cart.com/tutorials/index.php?article=122

However I could still not see my site using my normal address: https://www.passionsignite.com.au

So I installed the Fix Cache Key file but can not figure out how to run it. The info page only says Run It.

How do I do this?

16 Apr 2010, 3:30 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Changing what the url / page name is

You didn't update your configure.php files as per the instructions. This is confirmed by the "thanks for installing" message you get when visiting your site at the normal address: http://www.passionsignite.com.au/index.php

16 Apr 2010, 3:35 PM
#9
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

Silly me I didn't realize I had to put index.php on the end of my web address.

Ok I have the thank you for loading Zen cart page.

What do I do now?

I have been working on this site for well over 2 months and want to make sure I did this properly. I don't wont to loose my data.

16 Apr 2010, 3:40 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing what the url / page name is

As the 'thank you' page (and DrByte) says, you need to change the paths in your configure.php files to remove the subdirectory part.

16 Apr 2010, 3:54 PM
#11
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

It's starange I thought I changed them all, but when I took a second look most of them had not changed. Confusing!! lol

I can see my new home page now but I can not get into my admin area. It says

I'm just getting the thank you for loading message again.

I'm a bit daft, what am I missing?

The http address I typed in is http://www.passionsignite.com.au/admin/

16 Apr 2010, 3:54 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Changing what the url / page name is

Follow the FAQ posted earlier to determine the edits required to both configure.php files.
If you've renamed your admin folder, then you need to properly update that information too.

16 Apr 2010, 4:11 PM
#13
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

stevesh:

https://www.zen-cart.com/tutorials/index.php?article=122

Is this the link you mean?

If so then I have changed the following listed files.

DIR_WS_CATALOG

DIR_WS_HTTPS_CATALOG

DIR_FS_CATALOG

DIR_FS_SQL_CACHE

DIR_WS_ADMIN (in admin)

DIR_WS_HTTPS_ADMIN (in admin)

DIR_FS_ADMIN (in admin)

I'm not to sure where I would need to change the name of my admin area.

16 Apr 2010, 4:42 PM
#14
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

In both of the configure.php files there is the word"admin" in lower case and "admin" in uppercase. And the name I changed my admin folder to is also listed in some places. So I'm unclear as to what parts I may still need to change.

16 Apr 2010, 5:27 PM
#15
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

I worked it out and can now get into my admin section however now my home page is showing all over the place and my links are no longer working. The keep coming up with can not find server.

What the devil did I do wrong. It was working a few minutes ago. I was testing all my links and they worked fine. Since I changed that 1 thing to get my admin area back I have lost most of my site page urls.

As you can tell I'm not very good at this sort of thing. A friend was supposed to do it for me but bailed at the last minute.

What do I do now? Any ideas?

16 Apr 2010, 5:54 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Changing what the url / page name is

For some reason you've stuffed the letters "public_html" into your HTTP_SERVER or DIR_WS_CATALOG settings.

Why don't you look at the original configure.php files from BEFORE you made all these folder changes, and start again. This time only change the pieces that need changing.

18 Apr 2010, 12:47 PM
#17
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

Ok, I started from scratch again and did the following.

  1. Changed the session directory in admin to home/passions/public_html/cache

  2. Altered the following configure.php files in admin>includes

       CHANGED FILES FROM                                                                                                                     TO
    

    a) ('DIR_WS_ADMIN', '/zen-cart-v1.3.8a-full-fileset-12112007/'); ('DIR_WS_ADMIN', '/admin/');
    b) ('DIR_WS_HTTPS_ADMIN', '/zen-cart-v1.3.8a-full-fileset-12112007/'); ('DIR_WS_HTTPS_ADMIN', '/admin/');
    c) ('DIR_FS_ADMIN', '/home/passions/public_html/zen-cart-v1.3.8a-full-fileset-12112007/backend/'); ('DIR_FS_ADMIN', '/home/passions/public_html/backend/');

Configure.php in includes

a) ('DIR_WS_CATALOG', '/zen-cart-v1.3.8a-full-fileset-12112007/');                                                        ('DIR_WS_CATALOG', '/public_html/');
b) ('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.3.8a-full-fileset-12112007/');                                             ('DIR_WS_HTTPS_CATALOG', '/public_html/');
c) ('DIR_FS_CATALOG', '/home/passions/public_html/zen-cart-v1.3.8a-full-fileset-12112007/');                 ('DIR_FS_CATALOG', '/home/passions/public_html/');
d) ('DIR_FS_SQL_CACHE', '/home/passions/public_html/zen-cart-v1.3.8a-full-fileset-12112007/cache');     ('DIR_FS_SQL_CACHE', '/home/passions/public_html/cache');

All the files above where changed as explained in the tutorial link list in a post above.

I also altered the following file that was not listed:

   ('DIR_FS_CATALOG', '/home/passions/public_html/zen-cart-v1.3.8a-full-fileset-12112007/');                  ('DIR_FS_CATALOG', '/home/passions/public_html/');       

I found that if I did not alter this file my Zen Cart admin could not be found.

However my store is not found by using the following URL

http://passionsignite.com.au/

It is only found if I use http://passionsignite.com.au/index.php

and even then it is not showing correctly. The links are all over the place, no images or background.

I have also lost all of the images that were attached to every product I have for sale. They are showing as if they are broken links under my admin section.

I don't know what I've done wrong.

I also installed Image Handler as suggested bit even that is not working correctly.

There is something seriously wrong.

Can someone tell me what I have done or what is causing this to happen.

I should just be able to enter https://www.passionsignite.com.au and see my site.

I hope I have explained this well enough so it is easily understood.

And I was doing so well before this. lol Now anything that could go wrong is going wrong.

18 Apr 2010, 12:52 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Changing what the url / page name is

For your admin file, you should have been consistent in calling it either /admin/ or /backend/. Pick one or the other. Don't mix them.

For your non-admin file, you shouldn't have added "public_html" to the DIR_WS_CATALOG or DIR_WS_HTTPS_CATALOG. Those should just be '/' instead of '/public_html/'.

18 Apr 2010, 12:54 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Changing what the url / page name is

The tutorial really just tells you to remove the "old" foldername. In your case that would mean you should have just removed '/zen-cart-v1.3.8a-full-fileset-12112007' wherever it originally existed.

18 Apr 2010, 1:30 PM
#20
kayz avatar

kayz

New Zenner

Join Date:
Sep 2009
Location:
Victoria
Posts:
88
Plugin Contributions:
0

Re: Changing what the url / page name is

Ok I corrected those things but why do I need to still enter index.php at the end of my URL instead of just https://www.passionsignite.com.au?