How to detect mobile device and redirect to mobile version of your website in php

Now I am showing how to detect mobile device and redirect to mobile site. If you have created a mobile version of your website and computer (desktop/laptop) version of your website . You will need to be sure that you redirect your mobile visitors to your mobile website. For example if you have create 2 site example.com for desktop and m.example.com for mobile. if someone visits example.com on their mobile, you will need a way to redirect them to m.example.com.

Continue reading


CodeIgniter Remove index.php By .htaccess

CodeIgniter Getting Started With a Simple Example. how to remove index.php in your url. By default, the index.php file will be included in your URLs: http://example.com/index.php/controller/function If your Apache server has mod_rewrite enabled, you can easily remove by using a .htaccess file with some simple rules. after remove index.php from url you will see like http://example.com/controller/function

Continue reading