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

[eluser]dadamssg[/eluser]
im beginning to question where i shouldve put the CodeIgniter folder.

I put as a folder at my root next to my index.php frontpage. Should i have just put the System folder found within the CodeIgniter there instead and change my route to 'http://www.myexample.com' instead of what it is now('http://www.myexample.com/CodeIgniter')?

I say this because all of my urls have the CodeIgniter folder in them like below. BUT im worried that my current index.php found at my root(http://myexample.com/index.php) will mess everything up.

http://myexample.com/CodeIgniter/index.php/form

i don't want CodeIgniter in my url...

*i should mention that the account where im learning CodeIgniter already has my working website done the old fashion procedural way with no framework.
#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
#3

[eluser]dadamssg[/eluser]
wow..that worked like a charm...thanks!




Theme © iAndrew 2016 - Forum software by © MyBB