Skip to main content

Posts

Remove Index.php in CodeIgniter

If you are using  Codeigniter  you are noticed that by default  index.php  will be included with your  URL . But you can easily remove index.php from your CodeIgniter’s URL so that your URL should be like: impegnotech.com/site/contact To do this just follows the following steps: Open  config.php  from  system/application/config  directory and replace $config['index_page'] = “index.php”  by  $config['index_page'] = “” Create a  “.htaccess”  file in the root of CodeIgniter directory (where the system directory resides), open the file using your favorite text editor, write down the following script and save it: RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] In some case the default setting for  uri_protocol  does not work properly. To solve this problem just replace ...

Ubuntu Grub Recovery or Reinstallation!!!!

If u have installed the both os (windows and ubuntu). But if u reinstall the windows os then ubuntu will disappear u can recover this doing following steps 1) boot Ur system using live ubuntu CD and use live session 2) open terminal and run following commands i) sudo grub ii) find /boot/grub/stage2 it will return u (hd0, some number) iii) root(hd0,number) iv) setup(hd0) and restart Ur system , now its done u can do this also by getting help from video