Confusion about Site url and directory

If I understand your question correctly you will need to adjust the above code to the following:

define('WP_HOME','http:example2.com/yoursubfolder/');
define('WP_SITEURL','http:example2.com/yoursubfolder/');

Give that a try.

EDIT:
you are missing the slashes on the http also –

define('WP_HOME','http://example2.com/yoursubfolder/');
define('WP_SITEURL','http://example2.com/yoursubfolder/');