Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Page not found when referencing /assests/Uploads/*


Go to End


3 Posts   1964 Views

Avatar
Greg1

Community Member, 28 Posts

15 December 2010 at 2:01pm

I am trying to pull images from my /assets/Uploads/ folders into my pages. The image tags are correctly being generated on the page but no images appear. When I type the image url in the browser, eg http://www.mysite.com/assets/Uploads/image1.jpg it returns a Page not found error.

I've check the file structure and the images are in the /assets/Uploads/ folder.

Inside the CMS (Files & Images tab) they are listed in the correct location as well. However, when I use the "edit asset" button and click on the URL field it also displays a Page not found.

Any suggestions?

Avatar
Invader_Zim

Community Member, 141 Posts

15 December 2010 at 8:32pm

Hi Greg1.

Not quite sure, but maybe it has something to do with your .htaccess file in your /assets directory.
Here's a nice thread on this subject: http://silverstripe.org/installing-silverstripe/show/14878?start=0

Cheers,
Christian

Avatar
Greg1

Community Member, 28 Posts

16 December 2010 at 2:10pm

Thanks Christian, that fixed the problem easily. I did see the thread when looking to solve the issue but it didn't seem relevant to my situation.