Answers
ContentMiddleAd
You are using MVC with OOPS Concept. So there are some certain rules.
1) Your class name (ie: controller name) should be start with capital Letter.
e.g.: your controller name is 'icecream'. that should be 'Icecream'
In localhost it might not be compulsory, but in server it will check all these rules, else it can't detect the right class name.
and try this
.htaccess i use for many sitesRewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
ContentMiddleAd
if not working yet, use a
phpinfo(); and check if mod_rewrite is enabled
Hi Bro,
ReplyDeleteWhat a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this.
I am working on angular js application.
For the first time application is working fine, when we release a new build with new changes, when the user trying to access the page browser is still loading the old files new changes are showing in the browser, to load the new changes user has to clear the cache and reload the application.
Is there any way to clear the browser cache on the application load.
I am clearing the cache like below.
angular.module('myapp').run(function ($rootScope, $templateCache, $localStorage) { $rootScope.$on('$routeChangeStart', function (event, next, current) { $rootScope.$storage = $localStorage; if (typeof (current) !== 'undefined') { $templateCache.remove(current.templateUrl); } }); });
it is clearing the cache, but when any changes comes on the first load it is not clearing the browser cache.
Great effort, I wish I saw it earlier. Would have saved my day :)
Ciao,
Irene Hynes
Excellent article, I will bookmark your page for future reference.
ReplyDeleteAngularjs Developer
There are several reasons for codeigniter 404 page not found error. The basic reason is that either the page doesn't exist or the page couldn't be fetch from the server. Whatever the reason is, it is necessary to have a custom 404 page to be shown upon getting the error to retain the users.
ReplyDeleteThank you.Well it was nice post and very helpful information on
ReplyDeleteAngularJS5 Online Course
i am getting 404 error after .htaccess file change http://sukhmaya.com/listing/category/26
ReplyDelete