Welcome Guest, Not a member yet? Register   Sign In
question of ajax and CI
#10

[eluser]piranha_swe[/eluser]
Hm its working now that I changed my htaccess file.

How should my htaccess file look if I want to remove index.php and the controller records from the visible url?

This works for the ajax call:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
RewriteRule ^(.*)$ /index.php?/%1 [L]
RewriteCond $1 !^(images|system|photos|sounds|ajax|favicon/.ico|robots\.txt|index.php) [NC]
RewriteRule ^(.*) /index.php?/$1 [L]

But I would like to remove /records too.
This seems to be bad since the ajax thing doesnt work, and admin doesnt work either.

RewriteEngine On
RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
RewriteRule ^(.*)$ /index.php?/records/%1 [L]
RewriteCond $1 !^(images|system|photos|sounds|ajax|favicon/.ico|robots\.txt|index.php) [NC]
RewriteRule ^(.*) /index.php?/records/$1 [L]


Messages In This Thread
question of ajax and CI - by El Forum - 08-19-2009, 03:41 AM
question of ajax and CI - by El Forum - 08-19-2009, 04:31 AM
question of ajax and CI - by El Forum - 08-19-2009, 04:36 AM
question of ajax and CI - by El Forum - 08-19-2009, 04:49 AM
question of ajax and CI - by El Forum - 08-21-2009, 03:49 AM
question of ajax and CI - by El Forum - 08-21-2009, 04:04 AM
question of ajax and CI - by El Forum - 08-21-2009, 05:08 AM
question of ajax and CI - by El Forum - 08-21-2009, 05:38 AM
question of ajax and CI - by El Forum - 08-24-2009, 03:15 AM
question of ajax and CI - by El Forum - 08-24-2009, 03:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB