Suggested .htaccess rewrite is not hiding system folder |
[eluser]helloworldly[/eluser]
I'm using the suggested modrewrite rules which work great in removing index.php from the url but do not also remove access to the system folder as it suggests it should: (From Codeigniter wiki: http://codeigniter.com/wiki/mod_rewrite/) I also have config/config.php set as suggested with: $config['index_page'] = ""; $config['uri_protocol'] = "QUERY_STRING"; Everything works fine locally using MAMP and remotely using GoDaddy server re: removing index.php from the url, but I am still able to view the system folder and its contents on both MAMP and GoDaddy. So, as an example, going to http://example.com/folderWhereFullAppRes...e_view.php will display the view contents rather than redirecting to app's index.php as htaccess implies it should. As an alternative to using htaccess rules: I'd love to move the system outside the public www view, but that is not possible with GoDaddy from what I can see and so am bound to using .htaccess rules. Seems this part of the suggested htaccess file is not functioning as intended in my environments: #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] If it matters: the client is using the "deluxe" GoDaddy setup where multiple domains / sites can be hosted from 1 account. Any thoughts? Thanks much. |
Welcome Guest, Not a member yet? Register Sign In |