Solved: VirtueMart double login problem
When running a Joomla+VirtueMart 1.1.x shop, I encountered a problem accessing the backend. Sometimes it asked me to insert admin credentials straight to mydomain.com/administrator. Sometimes asked for a login when going in Components -> VirtueMart in Joomla admin menu.
Here's how I solved Joomla + VirtueMart double login problem.
- Open Joomla configuration file in your website's root. On line 20 write your site url without www
var $live_site = 'http://yourdomain.com/';
- Open VirtueMart configuration file (\administrator\components\com_virtuemart\virtuemart.cfg.php), on line 34 and 35 type your sitename without www
define( 'URL', 'http://yoursite.com/' ); define( 'SECUREURL', 'http://yoursite.com/' );
- Save files. Now always type your page into browser without www and access your admin area without www (e.g. http://yoursite.com/administrator). The problem is gone.
This is the simplest solution to Joomla VirtueMart double login issue. There is also a possibility to create a www rewrite condition in htaccess but the upper solution can do it aswell.