Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / URL address delima -- I want to move out of the /cart folder

URL address delima -- I want to move out of the /cart folder

Locked
This thread is locked. New replies are disabled.
18 Jul 2007, 8:39 PM
#1
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #1 by oxymoronz

Currently to access my site the address is

www.oxymoronzclothing.com

but to access my site through zen cart the address is

www.oxymoronzclothing.com/cart.

How do I change this so my zen cart site is not followed by "/cart"?

18 Jul 2007, 8:49 PM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Jul 2007, 10:30 PM
#3
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #3 by oxymoronz

Currently my home page is located/running out of "/downloads"
So do I need to move each of the files FROM "/cart" TO downloads?
Or do I move the whole folder "/cart"?

Second question...
When I change the session directory, would I only change "cart" to reflect the change and leave "/cache"?
(i.e. /home/oxymdan0/public_html/Cart/cache)

Thank you for your insight.

18 Jul 2007, 10:56 PM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

oxymoronz:

Currently my home page is located/running out of "/downloads"
So do I need to move each of the files FROM "/cart" TO downloads?
Or do I move the whole folder "/cart"?I don't know.
WHY is your "home page" running from the "downloads" folder?
And how is your host configured in order to serve the home page from there?

oxymoronz:

Second question...
When I change the session directory, would I only change "cart" to reflect the change and leave "/cache"?
(i.e. /home/oxymdan0/public_html/Cart/cache)Normally you would just change or remove the "Cart" part, keeping the "cache" part. And no double // marks.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jul 2007, 4:01 AM
#5
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #5 by oxymoronz

The organization of my file manager is...
"/ public_html / downloads" and my files need to be in downloads for the server to find them aparently.

19 Jul 2007, 4:15 AM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

oxymoronz:

The organization of my file manager is...
"/ public_html / downloads" and my files need to be in downloads for the server to find them aparently.

That's not a "normal" setup, and shouldn't be required.

You should be able to just remove the "Cart" from the URL, and move all your files up a level, directly to "public_html".

If you have some special .htaccess thing doing the redirect to the "downloads/home.htm" file, you'll need to remove that.
If that redirect is happening from an "index.html" file in your public_html folder, you'll need to remove that.

So, in short, "no", you don't need to use the "downloads" folder name.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jul 2007, 4:36 AM
#7
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #7 by oxymoronz

I've looked into my "public_html" folder for the "index.html" file.

<html> <head>
  <META HTTP-EQUIV="Refresh" Content="0; URL=downloads/home.htm">
</head>
</html>

Would this be the redirect that sends it to the "downloads" folder?

19 Jul 2007, 5:09 AM
#8
drbyte avatar

drbyte

Sensei

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

Post #8 by drbyte

oxymoronz:

<META HTTP-EQUIV="Refresh" Content="0; URL=downloads/home.htm">

Would this be the redirect that sends it to the "downloads" folder?

Yes, it is .

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jul 2007, 5:23 AM
#9
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #9 by oxymoronz

Great, thank you... and the other part of the question. Do I move the whole "cart" folder to my desired folder or just the files out of the "cart" folder?

19 Jul 2007, 5:30 AM
#10
drbyte avatar

drbyte

Sensei

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

Post #10 by drbyte

oxymoronz:

Great, thank you... and the other part of the question. Do I move the whole "cart" folder to my desired folder or just the files out of the "cart" folder?

Something like this is what I'd do, based on what I think I know about your setup:

  1. Go to your Admin->Config->Sessions->Session Directory and remove the "/Cart" part from the path listed.
  2. Open your FTP program
  3. Browse to your public_html folder.
  4. Make sure there is no index.php file in there. If there is, rename it to index.php_old
  5. Go to your Cart folder
  6. Select All files+folders in the list
  7. Drag-and-drop them "up" a level, onto the ".." or "public_html" folder.
  8. Make the changes to the configure.php files, as documented in the links posted earlier.
  9. Rename your public_html/index.html file to "index.html_OLD"

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jul 2007, 7:08 AM
#11
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #11 by oxymoronz

Thanks for all your help. I took the risk and trusted myself to do this. Now I think I've gunked it up a little. lol.
This is where I'm at....
I moved all of the files/folders from "cart" to "public_html" with the exception of the "image" folder and the ".htaccess" file which could not be moved because files with those names already exits in "public_html". Then I changed the configure.php files and session directory. Now when I go to www.oxymoronzclothing.com it only shows a file directory. I think I may see if the support center can fix it.

19 Jul 2007, 7:29 AM
#12
drbyte avatar

drbyte

Sensei

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

Post #12 by drbyte

What's in your public_html/.htaccess file ?

Somehow your site must not be setup to know that it should run "index.php" if there is no "index.html" file.

In the meantime, if you can't afford to have your site "down", you could rename the "index.html_OLD" back to "index.html" until they fix the php issue.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jul 2007, 7:30 AM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

Also, since your public_html/images folder appears to be empty, you can probably just rename it to "images_old", and then drag-and-drop your Cart/images folder up a level as well.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jul 2007, 7:54 PM
#14
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Post #14 by brent

oxymoronz

Once you get this fixed it is also a good idea to rename your admin folder. Full instructions here.

Brent

20 Jul 2007, 4:54 AM
#15
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #15 by oxymoronz

The .htaccess file located in the public_html folder contains

**DirectoryIndex index.html
AuthUserFile /public_html/.htpasswd
AuthGroupFile /public_html/.htgroup

AuthName "Site Studio"
AuthType Basic

<FILES .htpasswd>
deny from all
</FILES>

<FILES .htgroup>
deny from all
</FILES>**
And the .htaccess file located in the cart folder contains

DirectoryIndex index.php

21 Jul 2007, 9:38 AM
#16
drbyte avatar

drbyte

Sensei

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

Post #16 by drbyte

oxymoronz:

And the .htaccess file located in the cart folder contains

DirectoryIndex index.php

The .htaccess in public_html needs to have that statement in it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Jul 2007, 9:40 AM
#17
drbyte avatar

drbyte

Sensei

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

Post #17 by drbyte

Additionally, if you go directly to the index.php file, via the URL: http://www.oxymoronzclothing.com/index.php then your page is not showing properly.
It appears that your configure.php files have the "public_html" in the DIR_WS_CATALOG or the HTTP_SERVER setting ... but shouldn't.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Jul 2007, 5:29 PM
#18
oxymoronz avatar

oxymoronz

New Zenner

Join Date:
Apr 2007
Posts:
65
Plugin Contributions:
0

Post #18 by oxymoronz

DrByte:

The .htaccess in public_html needs to have that statement in it.

So would I then want to insert that statement into the .htaccess file or should I just replace the statement index.html with index.php?

DirectoryIndex index.html
AuthUserFile /public_html/.htpasswd
AuthGroupFile /public_html/.htgroup

AuthName "Site Studio"
AuthType Basic

<FILES .htpasswd>
deny from all
</FILES>

<FILES .htgroup>
deny from all
</FILES>

22 Jul 2007, 6:00 AM
#19
drbyte avatar

drbyte

Sensei

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

Post #19 by drbyte

Try this:```
DirectoryIndex index.php index.html

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.