WP URL /icons returns 403 forbidden error

Probably because /icons is a default path in the Apache server. AFAIK it can’t be changed/overriden in .htaccess, because it is defined as Alias in the Apache configuration. See, for example, this question on Stack Overflow: how to override index of /icons?

Disable WordPress URL auto complete

I believe that is the redirect_canonical function hooked to template_redirect. You should be able to disable it with: remove_filter(‘template_redirect’, ‘redirect_canonical’); But you should really think about whether you want to do that as it is fairly complicated and performs some important SEO functions: Redirects incoming links to the proper URL based on the site url. … Read more

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/’);