Are you planing to move your already running website to new platform or in seo friendly url structure that is preferred by Google SEO team ?
Well, Its good step to run your website with new latest web technologies as well as according to suggestion of Google search result team.
Im sharing here one important tips that help you keep your traffic without any drop as well as by redirect user and search engine robots crawler to new site url once you migrate old site to new domain or mould in new structure. in such cases its very helpful for good SEO to use 301 Redirection technique and redirect old site indexed pages to relevant new Url.
301 Redirect mean permanently redirection. it redirect search engine crawler, visitor to new redirection url.
Methods of 301 Redirection
1 301 redirect using javascript
2 PHP for Linux / Unix / Apache put this at the very top of the page
Using Php Script
Using .Htaccess rule
3 ASP for Windows Servers
4 HTML Page Redirect
301 redirects are useful in the following circumstances.
- Move site to new domain
- Change url structure of existing site
- Static website migrate to dynamic platform
- Canonical URL
Access site main/home page with one url if either user hit
http://www.domain.com
http://domain.com
http://www.domain.com/index.php
http://www.domain.com/home.php
http://www.domain.com/index.html etc etc than redirect user to any one preferred url by 301 redirect
301 Redirect all possible url to one specific url using .htaccess
More Info Google Webmaster Support
Force HTTPS on certain URLs while force HTTP for all others
Well, Its good step to run your website with new latest web technologies as well as according to suggestion of Google search result team.
Im sharing here one important tips that help you keep your traffic without any drop as well as by redirect user and search engine robots crawler to new site url once you migrate old site to new domain or mould in new structure. in such cases its very helpful for good SEO to use 301 Redirection technique and redirect old site indexed pages to relevant new Url.
301 Redirect mean permanently redirection. it redirect search engine crawler, visitor to new redirection url.
Methods of 301 Redirection
1 301 redirect using javascript
2 PHP for Linux / Unix / Apache put this at the very top of the page
Using Php Script
<?php header( "HTTP/1.1 301 Moved Permanently" ); header( "Location: http://www.domain.com/new-page-url.html" ); ?>
Using .Htaccess rule
RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule (.*) http://www.domain.com/$1 [R=301,L] #add WWW prefix
<%@ Language=VBScript %> <% ' Permanent redirection Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.mysite.com/new-page.html/" Response.End %>
4 HTML Page Redirect
<meta http-equiv="refresh" content="0;url=http://www.mysite.com/new-page.html">
Google Search engine team also recommend that use a server-side 301 redirect.
301 redirects are useful in the following circumstances.
- Move site to new domain
- Change url structure of existing site
- Static website migrate to dynamic platform
- Canonical URL
Access site main/home page with one url if either user hit
http://www.domain.com
http://domain.com
http://www.domain.com/index.php
http://www.domain.com/home.php
http://www.domain.com/index.html etc etc than redirect user to any one preferred url by 301 redirect
301 Redirect all possible url to one specific url using .htaccess
# Redirect index.php to main domain url RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://www.domain.com/$1 [QSA]
More Info Google Webmaster Support
# Force HTTPS for /my RewriteCond %{HTTPS} !=on RewriteCond %{THE_REQUEST} ^[A-Z]+\s/my [NC] RewriteRule ^(my) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L] # Force HTTP for anything which isn't /my RewriteCond %{HTTPS} =on RewriteCond %{THE_REQUEST} !^[A-Z]+\s/my [NC] RewriteRule !^my http://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
Forcefully apply HTTPS on certain URLs in wordpress or any site use .htaccess
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
0 Comments