Web page speed is an important aspect of high search engine ranking. Google give high priority to page speed signals among 200 other signals. So i am going to share the code that is used to enhance the page speed of website.
301 is the permanent redirection from old url to new url. We can use 301 redirection code in .htaccess to resolve the issue of WWW and without (WWW). Suppose i have a website opening with both WWW and without WWW then search engine's will count them two different domains and the result will be duplicacy of two domains. We can resolve this issue with two methods either by setting our preferred domain in Google webmaster or by using 301 redirection.
Here is the method to set up a preferred domain in Google Webmaster.
301 is the permanent redirection from old url to new url. We can use 301 redirection code in .htaccess to resolve the issue of WWW and without (WWW). Suppose i have a website opening with both WWW and without WWW then search engine's will count them two different domains and the result will be duplicacy of two domains. We can resolve this issue with two methods either by setting our preferred domain in Google webmaster or by using 301 redirection.
Here is the method to set up a preferred domain in Google Webmaster.
- Login to Google.com/Wembasters
- Select the website you want to prefer.
- Go to setting
- Select preferred domain
- Select their either with WWW or without WWW.