def do_paths_match(request_path, cookie_path):
    """
    Implements path matching adhering to RFC 6265.
    
    Parameters
    ----------
    request_path : `str`
        The request's path.
    cookie_path : `str`
        The cookie's path.
    
    Returns
    -------
    path_matching : `bool`
    """
    if not request_path.startswith('/'):
        request_path = '/'
    
    if request_path == cookie_path:
        return True
    
    if not request_path.startswith(cookie_path):
        return False

    if cookie_path.endswith('/'):
        return True
    
    cookie_path_length = len(cookie_path)
    if cookie_path_length >= len(request_path):
        return False
    
    if request_path[cookie_path_length] == '/':
        return True
    
    return False