Mobile app version of vmapp.org
Login or Join
Michele947

: Canonical URL issue for www.takemyview.co.in My shares and stock market analysis an advisory website has canonical URL problems. My web server is not able to resolve this issue for now using

@Michele947

Posted in: #Htaccess #Html5

My shares and stock market analysis an advisory website has canonical URL problems. My web server is not able to resolve this issue for now using htaccess or any other means and all my SEO efforts are getting wasted. Perhaps I am not so sure but this is one issue which is there since launch of my website at least since last three years. So I just want to sort this out to make sure at least conical URL issue is not hampering my traffic flow. I tried html meta code
<meta http-equiv="refresh" content="0; url=http://www.takemyview.co.in/"> in index file but since this is the same URL which is having conical issue it getting refreshed on every reload and hence is not a good solution. If the browser stop after one refresh or if the browser get redirection only if user get to my website using takemyview.co.in or takemyview.co.in or takemyview.co.in/index.html to unique URL

Please give me immediate solution on this be kind

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

If your webserver is apache, you can use the technique from here: stackoverflow.com/questions/6059920/removing-index-html-from-url-and-adding-www-with-one-single-301-redirect

In order to remove index.html or index.htm from URLs I use the following in my .htaccess


RewriteCond %{REQUEST_URI} /index.html?$ [NC]
RewriteRule ^(.*)index.html?$ "/" [NC,R=301,NE,L]


If your webserver is ngnix, you can try the solutions here: stackoverflow.com/questions/5675743/nginx-rewrite-rule-to-remove-index-html-from-the-request-uri
If you webserver is IIS, try the solution here: stackoverflow.com/questions/7057639/iis7-url-rewrite-rule-to-perform-a-301-redirect-from-html-files-to-php-files


Alternately, you can add a rel canonical meta tag to the <head> of your index.html file:

<link rel="canonical" href="http://takemyview.co.in/"/>


which will allow Google to crawl both versions, but tell it to index only the version without the index.html.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme