I use a mac mini and a windows laptop. I want to be able to use any machine to develop my client websites and have them synced and working fine on both local servers.
I am planning to install the same Xampp version on both of them and map the db and htdocs files to a Google Drive folder so mac and windows servers will sync and have compatible Apache and MySQL versions.
The problem is that $_SERVER['DOCUMENT_ROOT'] is different on each of them and they get written on the db by some wordpress plugins.
Can i use mod_rewrite on httpd.conf to redirect a windows root path to a mac path and vice versa?