I used an htaccess in my project that use Codeigniter framework:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico) [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.*)$ ./index.php/$1 [NC,L,QSA]
My problem is, when i call a paypal service, Paypal response for me an GET url, like that:
http://xxx.xx.com/myproject/paypalCallback?tx=32J30607S6157364F&st=Pending&amt=85.00&cc=SGD&cm=&item_number=
I receive a 404 page not found. Htaccess doesn’t accept GET URL: ?tx=32J30607S6…
I sure it’s work on local, but not on live side
If you can, please help me.
Thanks
yes this works in CI
you can still access query string if they are disable in CI, try this code
To remove index.php from URL
if you have CI app in sub directories use this