Allow access to a specific directory in concrete5

Permalink
Hi, we're using concrete version 8.3.2.

We are trying to put folder "app-test" under the root directory that we would like to access from time to time to test php codes but whenever we request for that directory e.g.http://sampleSite/app-test, it returns a page not found error.
I tried the solutions suggested herehttps://www.concrete5.org/community/forums/customizing_c5/enable-acc... but still no luck.

Any idea where and what exactly should I put in the .htaccess file to allow me access to this specific directory? Is there some place else I should edit? Thanks.

We have the following directives:
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.+)$ $1.html [L,QSA]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*\.html\ HTTP/
RewriteCond %{REQUEST_URI} !^/google638de7de1497ee2d.html$
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]

 
Gondwana replied on at Permalink Reply
Gondwana
Do you have a file (eg, index.html) in app-test?
ianjay replied on at Permalink Reply
Hi, thanks for the reply. I do have an index.php file inside the app-test folder
Gondwana replied on at Permalink Reply
Gondwana
I'm not sure this is really a concrete5 question.

Try browsing to app-test/index.php. That should run your php script (if it's legit).

If your script doesn't run (and you're sure it's correct), try putting a simple index.html in app-test. Make sure it isn't empty, but it doesn't really need to be valid HTML for this purpose. Then browse to app-test/index.html. If you see your index.html contents, this suggests that php isn't installed properly. If you don't see your index.html, perhaps your .htaccess or directory permissions are interfering.

The next consideration is what should happen if you just browse to app-test. Normally that would load the index.html from that directory, but could be configured to load index.php.
CMSDeveloper replied on at Permalink Best Answer Reply
CMSDeveloper
⚠ Hello,

Just put this code in the .htaccess file in your "/files" directory:
Options +Indexes
RewriteCond %{REQUEST_FILENAME} !-d


.
ianjay replied on at Permalink Reply
Thanks guys! I thought there must be something weird going on since you guys find it odd. I thought maybe it's not an issue concerning concrete5, so I've done a couple of tests, I just deleted those exact folder and exact same index.php, recreated them and now it works. Not sure what is happening, I was finding solutions for this a couple of days now, you guys were a lot of help, thanks.