CodeIgniter Forums
manipulate url address - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: manipulate url address (/showthread.php?tid=42774)



manipulate url address - El Forum - 06-18-2011

[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


manipulate url address - El Forum - 06-19-2011

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


manipulate url address - El Forum - 06-19-2011

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