If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / Changed my store folder and now my site redirects to the old one!

Changed my store folder and now my site redirects to the old one!

Started by rrdein on 11 Dec 2014, 4:45 AM · Views: 4,922

Results 1 to 4 of 4
11 Dec 2014, 4:45 AM
#1
rrdein avatar

rrdein

New Zenner

Join Date:
Dec 2014
Posts:
5
Plugin Contributions:
0

Changed my store folder and now my site redirects to the old one!

I changed my folder from /zencart to "/". I edited the configuration files specified in the directions given in most places. Everything works, but when I go to http://mydomain.com (with no www) it redirects to http://www.mydomain.com/zencart. I have no redirects specified in my Cpanel, and I have not edited anything. I searched all my website files and cannot find ANYTHING to explain why my website redirects. :(

Any help is much appreciated.

11 Dec 2014, 7:03 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Changed my store folder and now my site redirects to the old one!

As far as Zen Cart is concerned, the store URL is generated ONLY from the contents of /includes/configure.php
So, maybe you tried to edit the file but its changes didn't save because the file was read-only on your server for security reasons?

Or maybe you've created a .htaccess file in the root of your site (ie: at /public_html/.htaccess ) and in there you've created some redirects you'd forgotten about?

.
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.

11 Dec 2014, 7:57 AM
#3
rrdein avatar

rrdein

New Zenner

Join Date:
Dec 2014
Posts:
5
Plugin Contributions:
0

Re: Changed my store folder and now my site redirects to the old one!

The .htaccess file in my public_html folder is completely empty. I verified the file was changed on the server.

DrByte:

As far as Zen Cart is concerned, the store URL is generated ONLY from the contents of /includes/configure.php
So, maybe you tried to edit the file but its changes didn't save because the file was read-only on your server for security reasons?

Or maybe you've created a .htaccess file in the root of your site (ie: at /public_html/.htaccess ) and in there you've created some redirects you'd forgotten about?

11 Dec 2014, 9:42 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Changed my store folder and now my site redirects to the old one!

rrdein:

The .htaccess file in my public_html folder is completely empty. I verified the file was changed on the server.

Please post the contents of your /includes/configure.php file. Obfuscate the Database account/login details before posting.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.