Category Archives: Htaccess

Increase Maximum Eexecution Time Limit

imgres




PHP scripts are by default only allowed to be executed for a certain period of time, and when it reaches the time limit, it will stop and produce the following error; Fatal error: Maximum execution time of 30 seconds exceeded in yourscript.php This is to make sure a bad script don’t consume too much resource. To allow your PHP script to run at a longer time, you’ll need to increase the maximum execution time limit of PHP scripts using any […]

Improve SEO and Site Performance

seo-webduos




Here is a tips which will improve SEO performance and site performance. Like, I have a domain yourdomain.tk. You can access the site through www.yourdomain.tk or yourdomain.tk . By accessing these two URL paths, the same web page are displayed as well. However, from system perspective, they are different. The problem of www and non-www A lot of people do think yourdomain.info and www.yourdomain.info are the same; in fact, www is a sub-domain. This can be verified by Drupal. If you have […]

Redirect 301 in PHP and .htaccess

Redirect 301 in PHP and .htaccess




What is 301 redirect ? You have a website and its all pages are ranked in the search engine. And now you’ve moved these files to a new domain. What will happen in this scenario!!. You are sending the visitor to “Error 404 – File not found” page when they follow your website in the search engine. Furthermore, if you place the custom error page, then also you will be keep loosing ranking in upcoming days in search engines as […]

How to redirect browser to https (ssl) in php

How to redirect browser to https (ssl) in php




Most of the e-commerce website uses payment gateway for online payment. And, those sites uses SSL (secure socket layer) connection to transfer data to and from the payment gateway. In the common scenario, most of the sites uses “http” protocol and you can see “http” in the browser’s address bar. But in the above scenario,we need to redirect the browser to “https” which means that “Hypertext Transfer Protocol over Secure Socket Layer”. Ok let’s see a real example, type “http://www.gmail.com” […]

Useful url rewriting examples using .htaccess

Useful url rewriting examples using .htaccess




If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I’ve given five useful examples of URL rewriting using .htacess. Now let’s look at the examples 1)Rewriting product.php?id=12 to product-12.html It is a simple redirection in which .php extension is hidden from the browser’s address bar and dynamic url (containing “?” character) is converted into a static URL.