Tag Archives: url

Change browser url without page reloading with ajax request using JavaScript, HTML5 history API, jQuery, PHP like Facebook, Github navigation menu


When you are working with ajax, the problem is that after you have loaded some content using ajax, you can’t change the URL of the browser according to the content. Because of this, reloading the page causes the new ajax content to disappear and it shows the previous page. Although you can resolve this problem [...]

Both sement based and query string(GETmethod) variables in url of codeigniter site


codeigniter-segment-and-query-string-url

By default codeigniter doesn’t support query string or get method variables, we can use only segment based url. To enable both segment base and query string (GET method) variables, you need to follow the upcoming steps… 1 ) In yout codeigniter config file change the uri_protocol as specified bellow, application/config/config.php $config['uri_protocol']    = ‘AUTO’; to $config['uri_protocol']   [...]

Remove index.php from url of codeigniter site using htaccess


codeigniter-remove-index.php-htaccess

Usually when we run a CodeIgniter website, the url will have index.php after the hostname. To remove this we need to use mode_rewrite, htaccess. First just check your php info of your server whether you have loded mod_rewrite module. To check this create  ‘php-info.php’ file and put the following contents and run it. php-info.php <?php [...]