Convert Apache configuration from .htaccess style to server style