Most likely the problem is related to the Clean URLs
Way to disable it using command line:
Run the drush commands:
drush vset clean_url 0 --yes
Run the mysql commands:
UPDATE variable SET value = 's:1:"0";' WHERE name = 'clean_url'; DELETE FROM cache;
Alternatively, you can modify the appropriate settings.php file to include the line
$conf['clean_url'] = 0;
at the bottom (or similar code in the site settings array you'll see there).
Source: https://www.drupal.org/node/5590