Problems with unique links in database: www.doamin/ or domain/
        Posted  
        
            by Thomas
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Thomas
        
        
        
        Published on 2010-05-22T11:09:42Z
        Indexed on 
            2010/05/22
            11:10 UTC
        
        
        Read the original article
        Hit count: 249
        
In my website everybody can send some links to other nice websites. All links in my database must by unique, but some links are with 'www.' prefix, and some without. Some ends for '/', some not. For example:
|http://www.domain.com
|http://domain.com
|http://domain.com
|http://domain.com/
and other problems can be with https or http.
I know that I should change address before saving to database, but what standard I should use?
© Stack Overflow or respective owner