Welcome Guest, Not a member yet? Register   Sign In
Simple chat facility - if file exists not working
#3

(06-22-2020, 03:57 AM)InsiteFX Wrote: It wont work because the whole application folder is using an .htaccess file
to stop viewing it. Look at the ,htaccess file.

What you would need to do is move it all to the root folder were it is writable.

Thanks InsiteFX. Obviously I need to learn more about .htaccess files. I have found 2.

C:xampp/htdocs/application/.htaccess
PHP Code:
<IfModule authz_core_module>
    Require 
all denied
</IfModule>
<
IfModule !authz_core_module>
    
Deny from all
</IfModule

C:xampp/htdocs/.htaccess
PHP Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond 
$!^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)$ /index.php?/$[L]
</
IfModule>
Header add Access-Control-Allow-Origin "*" 

I assume the root folder you speak of, is C:xampp/htdocs

I need to keep the chat files separate from the many base files Ive created for the website proper.

Is it wise to create chatterbox folders like C:xampp/htdocs/application/views/chatterbox/john/chris/chat & C:xampp/htdocs/application/controllers/Chatterbox/John/Chris/Chat and place a .htaccess file in the Chatterbox folder?
Reply


Messages In This Thread
RE: Simple chat facility - if file exists not working - by christaliise - 06-22-2020, 05:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB