• Hi everyone,

    I’m uploading on my site some banners that will be proposed for use to possible partners but I find the following problems:

    1. I created a subdomain with the sole purpose of inserting banners separately from the main site to avoid excessive bandwidth consumption but they do not work

    2. The URL structure in Media is https://www.mywebsite.com/wp-content/uploads/2018/08/my-banner.gif but I would like to change it to https://www.mysite.com/images /banner/my-banner.gif because in the banner codes it is not very nice to see that structure. I installed the Permalink Manager Lite plugin and I modified the permalink but the banners do not work (probably because the path where they were uploaded remains wp-content / uploads / 2018/08 / my-banner.gif)

    Can someone help me and explain if there is a possibility to change the URL of the images in “Media”? If yes, how?

    Thank You

Viewing 1 replies (of 1 total)
  • I created a subdomain with the sole purpose of inserting banners separately from the main site to avoid excessive bandwidth consumption but they do not work

    If they’re from the same hosting provided, they’ll still use up your hosting bandwidth. You should look into a CDN, such as Amazon Web Services. It will support a CNAME alias, so you can create a URL structure similar to what you want and not use up all your bandwidth.

    You should also leverage browser caching via .htaccess, which can cause users to store these banners in their browser cache if they are frequent visitors. Again, this will reduce bandwidth usage on your site.

    If you don’t want to do that, you can change the URL via rewrite rules in .htaccess. See this guide and this example. Mind you, you’ll need to know (or learn) some regex rules. This is not copypasta.

Viewing 1 replies (of 1 total)
  • The topic ‘Change URL / Permalink in “Media”’ is closed to new replies.