Welcome Guest, Not a member yet? Register   Sign In
where should i have put the CodeIgniter folder?
#2

[eluser]WebsiteDuck[/eluser]
You can get around that with an .htaccess file
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #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} ^codeigniter/system.*
    RewriteRule ^(.*)$ /CodeIgniter/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 ^(.*)$ /CodeIgniter/index.php?/$1 [L]
</IfModule>

This says, if the request is not a valid file or folder, send it to /codeigniter/index.php

Then, instead of http://myexample.com/CodeIgniter/index.php/form you can do http://myexample.com/form


Messages In This Thread
where should i have put the CodeIgniter folder? - by El Forum - 01-07-2010, 04:09 PM
where should i have put the CodeIgniter folder? - by El Forum - 01-07-2010, 04:13 PM
where should i have put the CodeIgniter folder? - by El Forum - 01-07-2010, 04:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB