Menu



error This forum is not active, and new posts may not be made in it.
1
Promote
How to solve canonicalization issue or what is htacess file?
1/10/2017 1:05:53 PM
How to solve canonicalization issue or what is htacess file?
+0
RE: How to solve canonicalization issue or what is htacess file?
1/11/2017 7:29:35 AM
.htacess file is used to solve the canonicalization issue of a website. It may happen that the home page of the site may take several urls like

1. www.abc[dot]com (with www)
2. www.abc[dot]com/index.html (Index page)
3. abc.com (without www)

The search engines might treat these URL as different and may divide the link juice gained by having various backlinks made with any of these 3 URLs. The link juice gets divided between these three URLs equally. .htacess file is created to have a single URL of the home page so that the link juice is passed onto single URL.
+0
RE: How to solve canonicalization issue or what is htacess file?
1/11/2017 1:08:14 PM
First of all, you need to know about your site have which types of server. Mostly these types of server use a htaccess file:
1- Linux, 2- Apache
​​​​​​​
If your hosting account uses one of these types of the server then you can copy below code into your htaccess file by SEO companies.

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ example[dot]com [NC]
RewriteRule ^(.*)$ www[dot]example[dot]com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . www[dot]example[dot]com%1%2[R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ www[dot]example[dot]com%1 [R=301,L]\

Note: In red highlights, you need to replace example.com with your domain name and in green highlights, you need to replace with your .html or .php index page. Keep in mind do not write just index, write extension too.

After the copy, this code with your htaccess old code, Save it and upload to your root folder where your site has the index page. Hope it will solve.
Notion Technologies is among the top-notch web solution companies catering to ultra-niche clients, for more info. please visit https://www.notiontechnologies.com | Our Services: SEO : https://www.notiontechnologies.com/seo-company-mumbai/ | Seo Company Mumbai: https://www.notiontechnologies.com/website-designing-company-mumbai/ | Web Development Company in Mumbai: https://www.notiontechnologies.com/ecommerce | Responsive design: https://www.notiontechnologies.com/responsive-webdesign | SEO Packages: https://www.notiontechnologies.com/seo-packages
+0
Jim
Jim Allen

5807
11253 Posts
11253
Invite Me as a Friend
Top 25 Poster
Person Of The Week
RE: How to solve canonicalization issue or what is htacess file?
1/11/2017 1:24:38 PM
No highlighting seen

Good help though. Thanks

Quote:
First of all, you need to know about your site have which types of server. Mostly these types of server use a htaccess file:
1- Linux, 2- Apache
​​​​​​​
If your hosting account uses one of these types of the server then you can copy below code into your htaccess file by SEO companies.

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ example[dot]com [NC]
RewriteRule ^(.*)$ www[dot]example[dot]com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . www[dot]example[dot]com%1%2[R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ www[dot]example[dot]com%1 [R=301,L]\

Note: In red highlights, you need to replace example.com with your domain name and in green highlights, you need to replace with your .html or .php index page. Keep in mind do not write just index, write extension too.

After the copy, this code with your htaccess old code, Save it and upload to your root folder where your site has the index page. Hope it will solve.

May Wisdom and the knowledge you gained go with you,



Jim Allen III
Skype: JAllen3D
Everything You Need For Online Success


+0
1


facebook
Like us on Facebook!