Solution 1:
Godaddy hosting it seems fixed on
.htaccess, myself it is workingRewriteRule ^(.*)$ index.php/$1 [L]
to
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
Solution 2:ContentMiddleAd
RewriteEngine, DirectoryIndex in .htaccess file of CodeIgniter apps
I just changed the .htaccess file contents and as shown in the following links answer. And tried refreshing the page (which didn't work, and couldn't find the request to my controller) it worked.
Then just because of my doubt I undone the changes I did to my .htaccess inside my public_htmlfolder back to original .htaccess content. So it's now as follows (which is originally it was):
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?/$1 [L,QSA]
ContentMiddleAd
And now also it works.
Solution 3:If not working solution 1 & 2 then check below...
you probably have a different server configuration not allowing
.htaccess overrides. edit your apache httpd.conf so that AllowOverride beAllowOverride All
You could try to execute with the
http://server.com/index.php/controller/function api access to ensure that this is the case.Solution 4:
waiting for other valid solutions.....
No comments:
Post a Comment