Welcome Guest, Not a member yet? Register   Sign In
htaccess and /public_html/
#8

[eluser]ironlung[/eluser]
Excellent thanks for your replies

I worded my original request badly perhaps but what my hosting service didn't supply /public_html/ as the root directory and I wanted to put /public_html/ and /application/ and also in my case /system/ off of the root directory but have the /public_html set as the root for serving http requests.

I have placed a .htaccess in the root directory containing the following

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/public_html
RewriteRule (.*) /public_html/$1


this more or less achieves what I want - i think I still have to protect the system/ and application directories but I can do that easily with the deny from all statements as above.


thanks for all your help guys...


regards


Messages In This Thread
htaccess and /public_html/ - by El Forum - 03-30-2009, 05:08 AM
htaccess and /public_html/ - by El Forum - 03-30-2009, 05:18 AM
htaccess and /public_html/ - by El Forum - 03-30-2009, 05:27 AM
htaccess and /public_html/ - by El Forum - 03-30-2009, 05:41 AM
htaccess and /public_html/ - by El Forum - 03-30-2009, 05:45 AM
htaccess and /public_html/ - by El Forum - 03-30-2009, 11:04 AM
htaccess and /public_html/ - by El Forum - 03-30-2009, 12:32 PM
htaccess and /public_html/ - by El Forum - 03-30-2009, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB