Forums / General Questions / Changed site root folder and now have bad htaccess problem(s)

Changed site root folder and now have bad htaccess problem(s)

Views: 1,031

Results 1 to 9 of 9
29 Apr 2013, 10:41 AM
#1
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Changed site root folder and now have bad htaccess problem(s)

Hi, I changed my website from the public_html/store folder to the public_html/ folder by following the instructions at...

http://www.zen-cart.com/content.php?160-i-have-installed-zen-cart-to-a-directory-how-do-i-rename-or-move-that-directory

my website still works as far as I can tell but now I can't go to specific file or folders for my site, such as https://www.mysite.com/images and I get message like "Forbidden You don't have permission to access /cache on this server. I get the error message access denied. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Hostgator told me that I have a bad .htaccess and didn't elaborate. Possible it's not in their jurisdiction.

I looked at the code for the htaccess files and I don't know what I'm lookin at. Also I searched around for info about this but little learned. Someone help please! :lookaroun

29 Apr 2013, 11:17 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Changed site root folder and now have bad htaccess problem(s)

The only .htaccess file affected by such a move would be the one you added to the root of your site. All the ones that came with Zen Cart won't have any effect on the symptoms you describe (unless you've changed their contents).

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

29 Apr 2013, 1:23 PM
#3
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Re: Changed site root folder and now have bad htaccess problem(s)

DrByte:

The only .htaccess file affected by such a move would be the one you added to the root of your site.
this file is completely empty. is it supposed to be?

29 Apr 2013, 7:03 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Changed site root folder and now have bad htaccess problem(s)

Zen Cart doesn't come with any .htaccess file in the root.

In theory, if you have such a file, renaming or deleting it would remove any impact that it is causing on your site.

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

30 Apr 2013, 3:00 AM
#5
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Re: Changed site root folder and now have bad htaccess problem(s)

Still have the same problems. When I try to go to mysite.com/images I get a forbidden and a 404. When I try to go to mysite.com/includes I get a blank screen. Could it be something to do with my cache being set to 'none'. It's supposed to be set to 'database' by default right? I didn't knowingly change this.

30 Apr 2013, 4:29 AM
#6
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Re: Changed site root folder and now have bad htaccess problem(s)

also, that .htaccess file in the root directory keeps coming back

30 Apr 2013, 4:34 AM
#7
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Changed site root folder and now have bad htaccess problem(s)

bodkin77:

When I try to go to mysite.com/images I get a forbidden and a 404.This is normal and is what you should get

bodkin77:

When I try to go to mysite.com/includes I get a blank screen.You should get the same as for the images

30 Apr 2013, 6:21 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Changed site root folder and now have bad htaccess problem(s)

bodkin77:

Could it be something to do with my cache being set to 'none'. It's supposed to be set to 'database' by default right? I didn't knowingly change this.
The 'cache' setting has nothing to do with .htaccess files in any way.

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

30 Apr 2013, 9:57 AM
#9
bodkin77 avatar

bodkin77

New Zenner

Join Date:
Apr 2013
Location:
Bangkok, Thailand
Posts:
35
Plugin Contributions:
0

Re: Changed site root folder and now have bad htaccess problem(s)

Thanks peoples. I guess there was no real problem to begin with because I discovered that I could actually open my stylesheet.css file in the browser which I assumed I couldn't because it is within the includes folder which wouldn't open, which might or might not have made sense. Gilby I'm certain that I could actually access those folders before I moved my files, but I guess it's probably safer than it was anyways. I remember viewing a list of image files in there. Hostgator did a permissions reset to default which might have caused my whole quandry. The site works fine. Thanks again.