Tiny MC Images stopped showing after url change |
[eluser]Unknown[/eluser]
I am relatively inexperienced to mvc and ci so please excuse me Heres what happenend; my old url structure used to be www.example.com/index.php?/constructor...... I then set $config['index_page'] = ''" in the config file now the url have become www.example.com/constructor..... Now the problem is that images uploaded through tinymce image manager are all gone, clicking /images/image.jpg actually go to www.example.com/constructor/images/image.jpg so obviously it doesnt show up. But accessing the website via www.example.com/index.php?/constructor show up the images. The image work even with just a question mark www.example.com/?/constructor.... I am desperately looking for a solution to this.
[eluser]Aken[/eluser]
Sounds like you're using relative URLs to load the images. Use an absolute URL instead, like your full website URL or the path beginning with a slash. Google around for more information, it's a pretty basic thing that you should learn about.
[eluser]codeboy[/eluser]
I was running into similar issues in the past with TinyMCE and now I have TinMCE convert all the images into base64 and save them into the db. This avoids all the issues with the URL's and makings moving content between environments very easy. |
Welcome Guest, Not a member yet? Register Sign In |