Double forward slashes after defining UPLOADS in wp-config.php
-
Hello.
I wanted to change the default media upload folder to https://mywebsite.com/files, so I added this line in my wp-config.php file:
define( 'UPLOADS', 'files' );
It works fine but I noticed that when opening the images in a new tab, the URLs have an extra forward slash after the “files” directory:
https://mywebsite.com/files//img.png
Why does this happen and how can I fix this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Double forward slashes after defining UPLOADS in wp-config.php’ is closed to new replies.