This is further to the redirect query which I posted earlier in this group .
Redirect rule for Apache : Adding www to URL
It is still not working for me , so re-posting the same query . The query was to add www to a URL www.example.com.au
I tried adding both the rewrite rules one by one as shown below,but still no luck. www is getting removed from URL.
RewriteCond %{HTTP_HOST} ^example\.com\.au$ [NC]
RewriteRule ^(.*)$ http://www.example.com.au/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.example\.com\.au$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.example.com.au/$1 [L,R]
Please suggest further .