How to enable index.php file in CodeIgniter? - codeigniter

We used the CodeIgniter framework to build our site. Currently, it seems someone hack on and set the index.html as default.
Can anyone tell how to set index.php as default?
Please review the site at http://www.nghenghiepviet.com. Any suggestion will be appreciated.
Regards,
Dung Nguyen

You're advertising don't you ?
and CodeIgniter is built by Experts not by you, so they can think better than you. no chance some one can hack in codeigniter. it's a Big Deal

Goto config/config.php, Change this
$config[base_url] = "http://www.nghenghiepviet.com/index.php";

Related

I want to rewrite my joomla site link

I dont have much knowledge about joomla, So my site link is as siteurl/services/digital-antenna-installation-brisbane which I want to redirect or change to siteurl/digital-antenna-installation-brisbane
Can anyone Please help me on that will guide me how should I do it in joomla. What I tried so far is editing the .htaccess file. I did it as follows.
RewriteRule ^services/digital-tv-antenna-installation-brisbane$ /digital-antenna-installation-brisbane [R=301,L]
but that did not work. can anyone guide me how to do it. Thanks In advance.
The free version of Direct Alias will fix this issue for you:
http://extensions.joomla.org/extensions/extension/site-management/sef/direct-alias
Direct Alias, "allows you to control menu item alias and have short SEF URLs without including aliases of parent menu items."

Mangage Customer edit display blank in magento admin panel

We have Added this code
"ini_set('display_errors',1);"
in index.php but there is no error.
Please tell me another solution. Is any problem in Database or server issue?
Try to enable developer mode from index.php
And check what is error display.
Please check the logs if you get some clue there.
Also, have you used any extension which is overriding the Customer management in admin. If yes, you can try to disable it once to identify the issue.
I hope you have ensured that its happening with the edit page and not for a particular customer.

how to call a joomla! module in a php page OUTSIDE joomla! directory?

i searched on the net for my answer,but the more i search,the less i find.here is the problem:
i have a joomla! website,located in localhost/joomla.
i have a php page, located in localhost/sample.php
now, how can i include some of joomla's modules,in this single "sample.php" page??
for example, how can i use "latest news" or "latest users" in my "sample.php" page?
one of mye friend did this, but i no longer can contact him. any help would be appreciated. if the question is not clear enough,plz let me know.
tnx
load the Joomla framework inside the external php file
like it says here http://www.irfanview.0fees.net/how-to-load-the-parameters-of-a-joomla-module-inside-an-external-php-file/
I've never had to do this, but first I think you would have to load the Joomla framework (see the installations root index.php) then you would have create a session using Jsession. This is just a guess so take it for what its worth.

Codeigniter URL routing

After searching a lot around, I decided to post this matter here.
I am working with codeigniter ( latest release). I need to have the URLs of my site working like below.
[username] / [controller] / [action] / [parameters]
as you can see the username is leading on the URL rest follows as normal. I need to fetch the username and get some data for the site so that that site could be customized according to his settings.
I tried to achieve this with .htaccess but had no luck. Then I checked with routing on code igniter, but I am not sure whether it's the right solid solution for me. can someone give me any leading on this. is this possible ?
Thanks
I would advise to use the routing option from Codeigniter.
http://codeigniter.com/user_guide/general/routing.html
$route['(:any)/user/viewprofile/(:num)'] = controllername/functionname/$2";
This way you can build classes and functions in an nicely ordered way.And keep it in codeigniter.
$route['(:any)/controller'] = 'controller/users/$1';
This will pass the dynamic username to the controller

Problem when removing index.php from url

dont worry it is not an another how to remove index.php from url question!! :D
i researched and made according to tutorials; here is my source
http://codeigniter.com/wiki/mod_rewrite/
im sure about all steps, but when run it, i dont see any error messageā€¦ url changes like
www.blablabla.com/contact
www.blablabla.com/about
but it always display homepage :/ thats weird!!
what can be problem? any idea?
thanks a lot! appreciate helps!!
if it always displays the home page it could be that your application isn't configured properly.
Check the system/application/config/config.php file and find the $config['uri_protocol'] option.
If you notice, in the comments there are a number of options you can try. I've found that sometimes on different servers I need to try different options before it will work (I think it's something to do with the PHP configuration, the AUTO option doesn't always get it right).

Resources