canonical

SEO Canonical Issue resolution on iis

i have a site running on IIS that i have Canonical Issue with. the error is: The page with URL "http://www.site.org/images/join_forum.gif" can also be accessed by using URL "https://www.site.org/images/join_forum.gif".Search engines identify unique pages by using URLs. When a single page can be accessed by using any one of multiple UR...

How can I normalize/canonize a regular expression pattern?

Hi, I have a complex regular expression I've built with code. I want to normalize it to the simplest (canonical) form that will be an equivalent regular expression but without the extra brackets and so on. I want it to be normalized so I can understand if it's correct and find bugs in it. Here is an example for a regular expression I ...

One site, multiple domains, better SEO

I have my personal website running on my main domain like myname.net I want to buy some domains that have great keywords to me, like: professionalrj.net and freelancebrasil.net (just examples). I don't want to redirect these new domains using 301 since I want to "score" with the keywords relevancy. I know that I can use canonical meta...

Canonical File Path in Ruby

Is there an easy way in Ruby to find a canonical file path out of a messy file path? For example: a/b/../c/x is the same as a/c/x a/./b/c/x is the same as a/b/c/x a/./b/../../c/x is the same as c/x Any simple way to do this? ...

ModRewrite with HTTPS

I'm using the following mod rewrites to ensure not only canonical URLs but also that the site is displayed using HTTPS: RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} // It think the problem must be here --^ RewriteCond %{HTTP_HOST} ^rto12\.ca$ [NC] RewriteRule ^(.*)$ https://www.rto12.ca/$1 [R=301,L] Rew...

How can I reproduce exception ...access control list is not in canonical for...

Hi, I'm trying to understand why it apeared in desktop application (C# .Net 3.5) and how to reproduce it to debug: System.InvalidOperationException: This access control list is not in canonical form and therefore cannot be modified. at System.Security.AccessControl.CommonAcl.ThrowIfNotCanonical() at System.Security.AccessControl....

Linq2EF: Return DateTime with a TimeZone Offset

Our database has all times stored as UTC, and we know the user's current timezone, so want to return it relative to that. So we want to incorporate the offset in a LINQ projection as so: var users = from u in this.Context.Users select new UserWithCorrectedDate { Id = u.Id, FirstNam...

What is the canonical way of handling different types in Python?

I have a function where I need to generate different output strings for another program I invoke, depending on which type it wants. Basically, the called program needs a command line argument telling it which type it was called with. Happily I found this answer on SO on how to check a variable for type. But I noticed how people also ra...