This question has been answered by sottwell. See the first response.
RewriteCond %{HTTP_HOST} !^subdomain\.domain\.comRewriteCond %{HTTP_HOST} !^subdomain\.domain\.com
RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
RewriteCond %{HTTP_HOST} ^example-domain-please-change\.com [NC]
RewriteCond %{HTTP_HOST} !^subdomain\.domain\.comRewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]RewriteCond %{HTTP_HOST} ^example-domain-please-change\.com [NC]#RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC]
#RewriteRule (.*) http://example-domain-please-change.com/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} !^www\.example-domain-please-change\.com [NC]
#RewriteRule (.*) http://www.example-domain-please-change.com/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} !^files\.example-domain-please-change\.com [NC]public_html/on the end of my url.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^domain\.com\.au [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.domain\.com\.au/index [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^files\.domain\.com\.au [NC]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^domain\.com\.au [NC]
RewriteCond %{HTTP_HOST} !^files\.domain\.com\.au [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.domain\.com\.au/index [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index
RewriteRule ^(.*)index$ http://www.domain.com.au/$1 [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]