Re-directing js files in wp-content/js after having moved domain
-
Hi all,
I have been trying to find a solution for an issue I encountered after having moved domain and i am running out of options: all js libraries from wp-includes are still pointing to the old domain and i am not sure how to go about it. The libraries in questions are as follows:<script type='text/javascript' src='https://example.com/wp-includes/js/wp-embed.min.js?ver=4.6.1'></script> <script type='text/javascript' src='https://example.com/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> <script type='text/javascript' src='https://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>
and
wp-includes/js/wp-emoji-release.min.js?ver=4.6.1
How do I force the redirection to the new domain? Another question is, do I actually need all of them? Is there a way to test whether my website does need to include them? I have attempted to use this:
for wp-emoji, but not only did not take any effect (I have included in functions.php), also ended up giving me a 500 message when loading the page the first time.
Thank you so much for your help,
Regards,
N.
- The topic ‘Re-directing js files in wp-content/js after having moved domain’ is closed to new replies.