Question: Unable to locate image hyperlink on my profile.

Tried using `xpath`, `css locator` but nothing worked.

1. `driver.findElement(By.cssSelector("//img[contains(@src,'https://d3ejdag3om7lbm.cloudfront.net/assets/img/Default User.png')]")).click();`
2. `driver.findElement(By.xpath("//span[@class='user_name']")).click();`
3. `driver.findElement(By.cssSelector("span[class='user_name']")).click();`

Selenium fails to find the element.

[enter image description here](https://i.stack.imgur.com/xOo1t.png)

Answer: 
Converting my comments to answer to help out future visitors to easily find a quick solution.

```
Options +FollowSymlinks -MultiViews
RewriteEngine On

# redirect to https
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# pass query parameter to a php file internally
RewriteRule ^services/([\w-]+)/?$ services.php?param=$1 [L,NC,QSA]

# handle .php extension
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^.]+)/?$ $1.php [L]

```
I modified your rules, check it:

```
    Options +FollowSymlinks
    RewriteEngine On

    RewriteRule ^services\/(.*)$ /services#$1 [R=301,L]

    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]

```