canonical-link

Pretty URLs Vs. Duplicate Content

流过昼夜 提交于 2019-12-07 11:13:08
问题 I'm trying to clear up a grey area about this much talked about topic... Like most devs, I've made some pretty URLs with mod_rewrite. My sites internal links point to the pretty URLs and things are working nicely. But, I can still access the old URL if I point to it directly. Now, this is most certainly going to cause duplicate content issues so after doing some research it seems that 301 redirects are the way to go. But.... and here's the grey bit... If you are working on a site with

Canonical huffman encoding algo

隐身守侯 提交于 2019-12-05 20:34:06
Hello I am trying to implement Canonical huffman encoding but i dont understand wiki and google guides, I need explain more abstractly... I tried this: 1. Get list of regular huffman encoding length's codes. like this: A - code: 110, length: 3. B - code: 111, length: 3. C - code: 10, length 2. D - code: 01, length 2. E - code: 00, length 2. I sorting the table by symbol and length like this: C - code: 10, length 2. D - code: 01, length 2. E - code: 00, length 2. A - code: 110, length: 3. B - code: 111, length: 3. now i dont know how to proceed... tnx a lot Throw out the codes you get from the

Pretty URLs Vs. Duplicate Content

天大地大妈咪最大 提交于 2019-12-05 17:37:00
I'm trying to clear up a grey area about this much talked about topic... Like most devs, I've made some pretty URLs with mod_rewrite. My sites internal links point to the pretty URLs and things are working nicely. But, I can still access the old URL if I point to it directly. Now, this is most certainly going to cause duplicate content issues so after doing some research it seems that 301 redirects are the way to go. But.... and here's the grey bit... If you are working on a site with thousands of URLs, what's best practice to achieve this? I don't wantto list 1k+ lines in .htaccess I thought

How to configure redirects to url with trailing slash in nginx?

孤者浪人 提交于 2019-12-05 16:46:21
I want to redirect URLs without slash to the path with trailing slash. So /some-url to /some-url/ And the rest of the URLs, like /some-url.xml /some-url? /some-url?q=v /some-url/ Should stay without redirection. I found this article https://www.ateamsystems.com/tech-blog/nginx-add-trailing-slash-with-301-redirect-without-if-statements/ in which author suggests to use following rule: location ~ ^([^.\?]*[^/])$ { try_files $uri @addslash; } location @addslash { return 301 $uri/; } Unfortunately this doesn't really work. Because url /some-url?q=v gets redirected to /some-url/ Could you suggest

How to add canonical tag the pages that are derived from same link?

懵懂的女人 提交于 2019-12-05 11:41:51
I am using symfony 1.0.6. In my site I have two URLs. http://newe4s.com/news/articles/view/033/job-news-and-information and http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs Now, all the new articles are using same layout and both above links get same data from database. Google is reporting duplication of contents since it is getting multiple URLs for same content. When I searched for a solution, I got that using "canonical" structure fixes this issue which require <link rel="canonical" href="http://newe4s.com/news/articles/view/033

Difference between rel=“canonical” and og:url?

放肆的年华 提交于 2019-12-05 09:31:05
问题 I'm having trouble understanding canonical URLs with regards to how search engines and Facebook seem to handle them. My Google maps powered site allows visitors to use social media to request a gig in their country. One of the pages in question can be found at: http://izzy.nogig.in/ When a user clicks on their countries marker it gives them sharing options (twitter/facebook/etc), which when shared will share the URL specifically for that country, eg: izzy.nogig.in/usa? or izzy.nogig.in/spain?

Link rel=“canonical”: Should different user guide versions use the same canonical url? [closed]

点点圈 提交于 2019-12-05 09:30:22
Closed . This question is opinion-based . It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed last year . Should 2 different versions of a user guide use a different canonical URL ? Documentation version 1.1.0.Final : <link rel="canonical" href="http://docs.foo.org/1.1.0.Final/index.html"> Documentation version 1.2.0.Final : <link rel="canonical" href="http://docs.foo.org/1.2.0.Final/index.html"> Or should 2 different versions of a user guide use the same canonical URL ?

Registration ID duplication for GCM

北城余情 提交于 2019-12-05 08:04:09
We have an app that uses GCM. When user firstly opens the app,app checks the shared preferences to look whether user is registered previously.if not the registration id is taken from GCM and stored to shared preferences. There is also a 3rd party server where user id and registration ids are stored. I read and implemented the following cases for canonical id issues: During sending notification,if a new registration id (canonical id) is received, the old registration id is updated with the canonical id in the 3rd party server. When user uninstalls the app, and when the 3rd party server sends a

Specify custom canonical URL in WordPress Post

一曲冷凌霜 提交于 2019-12-04 23:37:03
问题 We operate 1000's of websites, most of them are are made for specific sports events. Currently we have our writers write to all of them specifically for unique content. However we have 2 major sites that cover all events in their verticals; and we would like to start syndicating content to the minisites, from these major sites. To maintain best practices in Google's eyes, we would have to specify the original source of the article via the rel=canonical tag - however our current plugin AIOSEO

Specify custom canonical URL in WordPress Post

孤街浪徒 提交于 2019-12-03 14:20:16
We operate 1000's of websites, most of them are are made for specific sports events. Currently we have our writers write to all of them specifically for unique content. However we have 2 major sites that cover all events in their verticals; and we would like to start syndicating content to the minisites, from these major sites. To maintain best practices in Google's eyes, we would have to specify the original source of the article via the rel=canonical tag - however our current plugin AIOSEO (All-in-One SEO) doesn't support specifying canonical tags on a post, or page basis. Is there a way to