Without a trailing slash, the WordPress CDN URL redirects to the backend URL

[ad_1]

I have a WordPress site hosted on Azure on a ngnix server. I have a CDN URL set up for it as well. Now the issue is that when I don’t put a trailing slash in the url, it just redirects to the backend url and then exposes the backend url to the user. For example :-
“CDNurl.com/home/“ works fine but if I try to go to “CDNurl.com/home” (without the trailing slash) it redirect to the backend url which is “backendurl.com/home/“
When I check the console I see it’s a 301 redirect issue.
Does anybody know how to solve this?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer