Welcome Guest, Not a member yet? Register   Sign In
manipulate url address
#1

[eluser]Unknown[/eluser]
Hello All, I'm new in using CI.

I got a problem when I tried to manipulate url address.
I want to use : http://mysyte.com/index.php/api/get_coordinate.kml
to call : http://mysyte.com/index.php/api/get_coordinate

I got this in my .htacces
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond $1 !^(index\.php|eventsitemap.xml|cek_img.php|robots\.txt|default.html)
    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>

what I need to do with this .htaccess? Really need Your help
Thanks
#2

[eluser]toopay[/eluser]
If that just about suffix, read Adding a URL Suffix section at CI url userguide.
#3

[eluser]Unknown[/eluser]
Thanks Mr.Toopay...it's solved now...Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB