I have create a theme in WordPress 4.8. When i trying to connect Rest API is showing me 404 error at my local but on my domain it is working fine.

I have navigated to `/etc/apache2/sites-enabled` and opened `000-default`

All of the `AllowOverride` variables were set to `None`, which I replaced with `All`.

But still it is not working at my localhost.