GetSimple Support Forum
Link to onsite dir & index.htm page - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Link to onsite dir & index.htm page (/showthread.php?tid=10007)



Link to onsite dir & index.htm page - jwzumwalt - 2017-10-06

I need to link to an onsite dir & index.htm page
(I have numerous media directories and I have my own custom php page that creates thumbnails for a gallery - it automatically creates a index.htm in the subdirectory)

When I create a link to the index.htm file I get a "Forbidden" error. How can I allow index.htm to run in that sub directory?dir &


RE: Link to onsite dir & index.htm page - shawn_a - 2017-10-06

Where are they located? theme?

Add an allow htaccess file ( you can find them in admin/tmp)


RE: Link to onsite dir & index.htm page - jwzumwalt - 2017-10-06

(2017-10-06, 02:20:33)shawn_a Wrote: Where are they located? theme?

Add an allow htaccess file ( you can find them in admin/tmp)

Still not getting it to work. I ether get a forbidden, or server internal error.
The directory I am trying to give user access is off the "uploads" directory.

I am upgrading a mega-site so I might have to come back to this problem.


RE: Link to onsite dir & index.htm page - Tyblitz - 2017-10-09

(2017-10-06, 10:44:55)jwzumwalt Wrote:
(2017-10-06, 02:20:33)shawn_a Wrote: Where are they located? theme?

Add an allow htaccess file ( you can find them in admin/tmp)

Still not getting it to work. I ether get a forbidden, or server internal error.
The directory I am trying to give user access is off the "uploads" directory.

I am upgrading a mega-site so I might have to come back to this problem.

Hi jw,

The uploads directory has a default .htaccess (which you can also view on Github). 
In fact if you look at line 30, that might be the problem. You mentioned index.htm, and the <FilesMatch> has a DENY rule for files ending in .htm. So you'll either have to adjust the regex (e.g. remove all the [mM] blocks), or adjust your index files to have the .html extension instead (which is, remarkably, not affected by the directive).

Depending on your Apache version (2.2- vs. 2.4+), and whether you have mod_access_compat enabled, you might need to do couple of tweaks. For more details, you can read this issue about htaccess config in GetSimpleCMS.


RE: Link to onsite dir & index.htm page - shawn_a - 2017-10-09

I guess we can add html to that, odd that it was missed.


RE: Link to onsite dir & index.htm page - jwzumwalt - 2017-10-10

Quote:Hi jw,

The uploads directory has a default .htaccess (which you can also view on Github). 
In fact if you look at line 30, that might be the problem. You mentioned index.htm, and the <FilesMatch> has a DENY rule for files ending in .htm. So you'll either have to adjust the regex (e.g. remove all the [mM] blocks), or adjust your index files to have the .html extension instead (which is, remarkably, not affected by the directive).

Depending on your Apache version (2.2- vs. 2.4+), and whether you have mod_access_compat enabled, you might need to do couple of tweaks. For more details, you can read this issue about htaccess config in GetSimpleCMS.

Thanks Tyblitz, that was the problem...

I just commented out all the deny and the htm & php work.
I'll come back later and figure out how to make it a case by
case basis for the desired directory.