What happened?
Description
I cant access assets if I set Base URL of filesystem different than actual filepath or not in public web folder.
Example1
- Lets say I have web www.example.com and alias @myweb.
- Create new Local Folder filesystem with settings:
Base URL: @myweb/test1
Base Path: @webroot/test2
Enable: Files in this filesystem have public URLs
- Create simple Volume using this filesystem. No need to add subpath.
- Upload example image.png to this volume.
- Try accessing this example image.
Expected behavior: Image accessed on www.example.com/test1/image.png
Actual behavior: Image is not accessible on above URL (shows 404) but instead on www.example.com/test2/image.png
Example2
- Same
- Create new Local Folder filesystem with settings:
Base URL: @myweb/test1
Base Path: @storage/test2
- Same
- Same
- Same
Expected behavior: Image accessed on www.example.com/test1/image.png
Actual behavior: Image is not accessible, shows 404.
Craft CMS version
5.10.3
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
What happened?
Description
I cant access assets if I set Base URL of filesystem different than actual filepath or not in public web folder.
Example1
Base URL: @myweb/test1
Base Path: @webroot/test2
Enable: Files in this filesystem have public URLs
Expected behavior: Image accessed on www.example.com/test1/image.png
Actual behavior: Image is not accessible on above URL (shows 404) but instead on www.example.com/test2/image.png
Example2
Base URL: @myweb/test1
Base Path: @storage/test2
Expected behavior: Image accessed on www.example.com/test1/image.png
Actual behavior: Image is not accessible, shows 404.
Craft CMS version
5.10.3
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions