Tuesday, 20 August 2013

access files outside public_html folder

access files outside public_html folder

I want to make some folder out of root directory (public_html). I have
shared server linux with follow directory.
/home/mysite
access-log
etc
mail
public_ftp
public_html
tmp
www
and my site directory in my computer(wamp):
app
model
controller
view
config
public
images
css
js
index.php
htaccess
I want public folder to be placed into public_html folder in server. 1)how
can I include my code using relative paths?
and I have htaccess file that points all requests to that public/index.php
in my computer.
2)Where should I put my htaccess in my Shared server linux?
my htaccess file:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

No comments:

Post a Comment