I'm getting 404 error while accessing relative paths on Wordpress website copied from hosting and deployed locally as Apache vhost.
Local website is basically git clone of the existing remote website.
The following steps were performed to make it work:
DB urls were searched and replaced with wp-cli to be http://local.webiste.com
VHost configured according to apache documentation.
/etc/hosts modified.
So website can be accessed successfully via http://local.website.com. Media in http://local.website.com/wp-content/uploads/2017 can be viewed successfully.
Though, accessing a Wordrpess page identified by /relative path (relative to current domain/site) causes "The requested URL /relative/ was not found on this server" error.
I'm using the same .htaccess from the remote public_html folder.
How to achive equivalent to hosting behaviour for local vhost website?
Is .htaccess, apache2 configuration, vhost configurations should be changed?