Problem with the controller url |
[eluser]tirithen[/eluser]
How come "http://visarkiv.hinfitt.se/index.php?blog" works and "http://visarkiv.hinfitt.se/index.php/blog" does not Would this be a setting on the web-server? Unfortunently it's a commercial server so I can't change any settings.
[eluser]John_Betong[/eluser]
Hi tirithen, >>> “http://visarkiv.hinfitt.se/index.php?blog” works and The above works because ?blog parameter is not used in the standard index.php >>> http://visarkiv.hinfitt.se/index.php/blog The above does not work because of some configuration problem. What is intended is the "blog" controller should be set in the following: ./application/config/routes.php Code: $route['default_controller'] = 'blog'; Now that you are using sub-directories take the opportunity to using friendly Urls and not use index.php file completely. Try this .htaccess file in your sub-domain root directory. "http://visarkiv.hinfitt.se/" .htaccess Code: <IfModule mod_rewrite.c> If this does not solve the problem then check the settings in your index.php file and also the "./application/config/config.php" file.
[eluser]tirithen[/eluser]
Thanks a lot, and by the way, I'm following the video tutorial for this blog file. My default_controller is set to blog, if I load http://visarkiv.hinfitt.se/ I'm redirected to the blog controller. I tried the .htaccess file and the simpler example from the documentation but either way it makes me get an 500 error. It seemes to me that it's a server confiruration but I might be wrong, anyone else that's using swedish Loopia for web hosting? Actually it does not matter much to me if I need to use the "index.php?" in the url, the important thing is that it works, but it would be nice if I could take it away.
[eluser]tirithen[/eluser]
Now I can't use forms with a "submit" button cause it points on an adress with index.php/blog and not a index.php?blog. Is'nt there some one else that have gotten this problem? It seem to work fine for you others so I guess it's my web hosting. |
Welcome Guest, Not a member yet? Register Sign In |