I have a .htaccess that maps a domain to a folder.
RewriteEngine On
RewriteBase /
# redirect mapped domain
ReWriteCond %{HTTP_HOST} joshblease.uk.to
ReWriteCond %{REQUEST_URI} !gme-index/
ReWriteRule ^(.*)$ gme-index/$1 [L]
Is there any way to edit/add extra domain maps to the file using PHP?
Simply, I want to get the contents of the .htaccess file and add to them using a PHP script.