In my PHP application, I have applied below rule to redirect non-www to www in htaccess.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [L,R=301]
But after applying this rule, I got into a trouble. System stop sending POST data. Login,registration etc all form have stop working after this rule.
Even I have tried to load login page with http://www.mydomain.com/login.html still it is not working.
How can i get rid of this situation?
Thank you.