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 Sometimes asked for a login when going in Components -> VirtueMart in Joomla admin menu. 

Here's how I solved Joomla + VirtueMart double login problem.

  1. Open Joomla configuration file in your website's root. On line 20 write your site url without www 
    var $live_site = '';
  2. Open VirtueMart configuration file (\administrator\components\com_virtuemart\virtuemart.cfg.php), on line 34 and 35 type your sitename without www
    define( 'URL', '' );
    define( 'SECUREURL', '' );
  3. Save files. Now always type your page into browser without www and access your admin area without www (e.g. 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.

About me

Iinstructor of robotics (LEGO Mindstorms), computer teacher, IT support, web dev, currently studying cyber-physical systems engineering.

If you found a solution here, would you consider donating $25,000 for my next project?

Just kidding, 1$ would do fine.

Hope you found what you needed. Thanks for stepping by.