cancel
Showing results for 
Search instead for 
Did you mean: 

404 Error When Trying to Directly Access Custom Folder

404 Error When Trying to Directly Access Custom Folder

Hi,

 

I have uploaded a new folder to the root directory in order we can initiate a migration of data to a WordPress / WooCommerce store but when we try and access new folder we get a 404 not found error http://www.no-angel.co.uk/bridge2cart/bridge.php.

 

The version of Magento is 1.9.3.1 and it's an Apache server. I have no experience with Magento so really don't know what the issue is I think there is a redirect set up somewhere but don't know where or how to remove it. Is there some kind of security code implemented by default to stop direct access to folders?

 

Thanks in advance,

 

James Isles

6 REPLIES 6

Re: 404 Error When Trying to Directly Access Custom Folder

Hi @james_isles

Check the magento root .htaccess and server .htaccess file. Might be any rule there.

Also check the folder permission.try once with 755.

Might be it will help you!

Re: 404 Error When Trying to Directly Access Custom Folder

Hi Vimal,

 

The permissions are already set to 755.

 

As for the .htaccess I have already tried removing the lines that I think could be causing it and I checked in cPanel and there are no redirects set up is that what you mean by server redirects?

 

I just tried replacing everything from this fresh .htaccess file https://github.com/engineyard/magento-ce-1.9/blob/master/.htaccess.sample but still no luck.

 

If I show you the .htaccess file could you take a look I have uploaded it here https://nebulasdesign.com/accessfile.txt.

 

James

Re: 404 Error When Trying to Directly Access Custom Folder

Hi,

 

Just to update this I've even tried deleting the .htaccess file completely (which surely should break the store but it doesn't) and the issue still remains so it can't be within the .htaccess file.

 

Oddly I can access certain files directly like this one http://www.no-angel.co.uk/index1.html but not this one http://www.no-angel.co.uk/accessfile.txt. It just seems like folders are redirected. Really baffled.

 

Thanks,

 

James

Re: 404 Error When Trying to Directly Access Custom Folder

Hi,

 

The issue has now been resolved thanks for your help. My client had another server within the same account which I wasn't aware of so it now all works.

 

James

Re: 404 Error When Trying to Directly Access Custom Folder

Great.. it is working. Might be some server configurations level issues with the server.

Re: 404 Error When Trying to Directly Access Custom Folder

No I was uploading the files to the wrong hosting account that was the issue I wasn't told they had another.

 

Thanks for your help.