Question: I've found a couple similar questions asked before, but none with a concrete solution it seems. What I'm after is as follows; in the rare cases where a visitor forgets to add the .html extension to the end of a url (typing everything else in the string properly however), I'd like them to be directed to the page they were aiming for, *with* the .html extension.

Possible?

Current .htaccess code:

```
ErrorDocument 404 /404.html

#Canonical
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule ^index\.html$ "http\:\/\/www\.domain\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#Blocking
<IfModule mod_setenvif.c>
    Order Allow,Deny
    Allow from all
    Deny from 123.151.39.
    Deny from 186.219.44.6
</IfModule>
<IfModule mod_rewrite.c>
    RewriteCond %{HTTP_HOST} (.*)\.crimea\.com [NC,OR]
    RewriteCond %{HTTP_HOST} s368\.loopia\.se [NC,OR]
    RewriteCond %{HTTP_HOST} kanagawa\.ocn [NC,OR]
    RewriteCond %{HTTP_USER_AGENT} (huaweisymantecspider|sitesnagger|spam|sucker|webcopier|webreaper|webstripper) [NC]
    RewriteRule .* - [F,L]
</IfModule>

```

Answer: 
There are func's that are called automatically when the map is in use. One of them is 

func mapViewDidFinishLoadingMap(mapView: MKMapView)

Try doing this.

```
  func mapViewDidFinishLoadingMap(mapView: MKMapView) {
    map.setRegion(mapRegion, animated: true)
}

```

If this doesn't work type func mapView and look in the list and find one you think might but I feel this is where it needs to be.
Swift 5.

In the `MKMapViewDelegate`, I recommend using the `regionDidChangeAnimated` method and setting the region of the `mapView` based on the user's coordinate. Change the span according to your use case.

```
extension MapViewController: MKMapViewDelegate {
    func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
        mapView.setRegion(MKCoordinateRegion(center: userLocation.coordinate, span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1)), animated: true)
    }
}

```