Welcome Guest, Not a member yet? Register   Sign In
Suggested .htaccess rewrite is not hiding system folder
#6

[eluser]helloworldly[/eluser]
Quote:"If you are not aware, on most hosts you move your system directory above the web root so that it cannot be accessed through a url."

Yeah I wish Go Daddy gave me that freedom but they don't. At least not on the plan my client has -- or not that I can see anyway.

Re: my htaccess - i had the exact copy of the recommended htaccess from that codeigniter wiki post i linked to in my first post. The only difference wasthat i commented out the rewritebase:

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    # Allow or disallow use of RewriteBase
    # RewriteBase /
    
    RewriteCond $1 ^system [NC]
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
       RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>


Messages In This Thread
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 11:20 AM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 01:05 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 01:53 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 02:40 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 02:50 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 03:31 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 03:48 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 04:27 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 04:27 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 04:56 PM
Suggested .htaccess rewrite is not hiding system folder - by El Forum - 01-11-2010, 05:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB