Post by HenrysCat » Sat Oct 02, 2021 4:35 pm

Hi all, I run my OC on Apache and need to allow access to one subfolder not realated to OC
mydomain.com/thisfolder
I have tried creating an .htaccess file in the folder with

Code: Select all

Order allow,deny
Allow from all
But that did not work, any ideas?
Thanks all

OC Version 3.0.4.0


New member

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by straightlight » Sat Oct 02, 2021 6:59 pm

HenrysCat wrote:
Sat Oct 02, 2021 4:35 pm
Hi all, I run my OC on Apache and need to allow access to one subfolder not realated to OC
mydomain.com/thisfolder
I have tried creating an .htaccess file in the folder with

Code: Select all

Order allow,deny
Allow from all
But that did not work, any ideas?
Thanks all
cPanel > Addon Domains. You could always look it up on Google on how to create an Addon Domain. Alternatively, you could always create a new service request in the Commercial Support section of the forum to get this done as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by HenrysCat » Sun Oct 03, 2021 3:55 am

I don't use cpanel it's terrible and over priced, and I specifically need that one subfolder allowed so an Addon Domain completely irrelevant.

OC Version 3.0.4.0


New member

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by straightlight » Sun Oct 03, 2021 4:49 am

HenrysCat wrote:
Sun Oct 03, 2021 3:55 am
I don't use cpanel it's terrible and over priced, and I specifically need that one subfolder allowed so an Addon Domain completely irrelevant.
Then look on Google. This forum is about Opencart.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by HenrysCat » Sun Oct 03, 2021 5:06 am

My post is about OC as it's the default OC .htaccess file that's blocking access to the subfolders.

OC Version 3.0.4.0


New member

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by straightlight » Sun Oct 03, 2021 8:03 am

HenrysCat wrote:
Sun Oct 03, 2021 5:06 am
My post is about OC as it's the default OC .htaccess file that's blocking access to the subfolders.
Please post your .htaccess file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by HenrysCat » Sun Oct 03, 2021 3:28 pm

straightlight wrote:
Sun Oct 03, 2021 8:03 am
Please post your .htaccess file.
er, it's here
https://www.opencart.com/index.php?route=cms/download
Nothing has changed in mine.

OC Version 3.0.4.0


New member

Posts

Joined
Fri Jul 23, 2021 2:01 pm

Post by paulfeakins » Mon Oct 04, 2021 6:23 pm

HenrysCat wrote:
Sun Oct 03, 2021 3:55 am
I don't use cpanel it's terrible and over priced
It's not terrible, it's actually very good, but it is now over-priced after they were bought-out.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by paulfeakins » Mon Oct 04, 2021 6:24 pm

HenrysCat wrote:
Sat Oct 02, 2021 4:35 pm
Hi all, I run my OC on Apache and need to allow access to one subfolder not realated to OC
mydomain.com/thisfolder
You could use a sub-domain instead, or you could search this forum where this has been answered before such as in this post: viewtopic.php?t=200632

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by by mona » Mon Oct 04, 2021 10:25 pm

The default .htaccess does not block access to anything except direct access to files with some extensions. As in

Code: Select all

<FilesMatch "(?i)((\.tpl|\.twig|\.ini|\.log|(?<!robots)\.txt))">
	Require all denied
</FilesMatch>
so case insensitive, .tpl, .twig, .ini, .log files and any .txt file except robots.txt

There is no need to allow access to a subfolder unless the parent folder is denied unless your server configuration has provisions.
Then you would use (unless you use an old server version):

Code: Select all

<RequireAll>
	Require all granted
</RequireAll>
In your case that parent folder is the root so I assume it is allowed.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 23 guests