Welcome Guest, Not a member yet? Register   Sign In
Routing Problem
#11

[eluser]Angel Lay[/eluser]
Unfortunately, I didn't get it. :-(
I am new in codeigniter.

if i use $route['default_controller'] ="registration", the default page is registration.
If i changed login, it goes to login page.
But I am wonder why i can't call from url. System didn't know the controller from url.
Is it because of using inside joomla?

#12

[eluser]Angel Lay[/eluser]
If i used http://myhost/en/mycodeigniter/index.php/rgeistration, it works.
how can i remove index.php inside url?
#13

[eluser]Ivar89[/eluser]
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} ^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>
#14

[eluser]Angel Lay[/eluser]
I can fix it now.
Thanks for all!




Theme © iAndrew 2016 - Forum software by © MyBB