https and Image Proxy problem / question?

Started by woolly bugger, September 13, 2017, 05:00:20 PM

Previous topic - Next topic

woolly bugger

i've implemented https on my forum directory mydomain/forum and enabled image proxy. it appears to be working on all images with the exception of the ones that I host on my site mydomain/myphotos/

if i edit the tags
from
[img]http://www.mydomain/myphotos/image.jpg[/img]

to
[img]https://www.mydomain/myphotos/image.jpg[/img]

the image will show up, but only if I make the change...

any ideas??? there are hundreds of post with thousands of images on the site with this issues!

shawnb61

Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

woolly bugger

Quote from: shawnb61 on September 13, 2017, 05:26:44 PM
Sounds like you may need a redirect.

More info here:
https://www.simplemachines.org/community/index.php?topic=555034.0


here is the .htaccess i've placed in the forum directory

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.mydomain.com/forum/$1 [R,L]

woolly bugger

#3
when I click on the broken image icon

br360

The code in your .htacces looks correct but there is still an issue. When you click on your forum link that is in your signature, it should redirect me to https and it is not.

Can you try to run repair settings as well?

woolly bugger

Quote from: br360 on September 13, 2017, 06:30:26 PM
The code in your .htacces looks correct but there is still an issue. When you click on your forum link that is in your signature, it should redirect me to https and it is not.

Can you try to run repair settings as well?

ran that, and ran it again to verify....

br360

For your rewrite rule, find:

RewriteRule ^(.*)$ https://www.mydomain.com/forum/$1 [R,L]

replace with

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

See if that works

shawnb61

That redirect isn't working at all.   I ran the redirect checker on  http://www.brfff.com/forum/ it returned http 200 - no redirect.   

Is it in the right location?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

I suspect you need it in your root folder, not the /forum subfolder.

If you have multiple forums, each in their own subfolders, that will take a different approach.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Illori

Quote from: woolly bugger on September 13, 2017, 06:19:38 PM
[img width=800 height=451]http://www.mydomain.com/btwc/ff2012/8/0825-12-2.jpg[/img]

i think this is one of the known bugs with the proxy and has to be fixed.

woolly bugger

Quote from: shawnb61 on September 13, 2017, 06:56:48 PM
That redirect isn't working at all.   I ran the redirect checker on  http://www.brfff.com/forum/ it returned http 200 - no redirect.   

Is it in the right location?

ok, got the rewrite to work properly -- thanks...

woolly bugger

Quote from: Illori on September 14, 2017, 05:03:55 AM
Quote from: woolly bugger on September 13, 2017, 06:19:38 PM
[img width=800 height=451]http://www.mydomain.com/btwc/ff2012/8/0825-12-2.jpg[/img]

i think this is one of the known bugs with the proxy and has to be fixed.

1. what causes the image height and width dimensions to be inserted into the post?

2. is there a way to stop this?

3. can a query be written to strip out the width and height from the database?





Arantor

1. SMF settings if there is a max image size.

2. Remove the max image size.

3. No.

Advertisement: