update sample to work with mamp url
avoid being redirected to /wp