Generate correct links event when mod_rewrite is disabled