Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
RewriteEngine on
RewriteCond $1 !^/yourimagedirectory/
RewriteRule (.*) http://www.yournewsite.com/$1 [R=301,L]
No I know that, you don't have to.
What I was saying, is that the old image links will be intact. Like http://www.yoursite.com/images/12/6/1/etc.png will NOT redirect to the new website, as the rewrite rule I posted above will only redirect the main site and not images.
BUT I would still copy all images to the NEW domain location, and possibly have a lightbox on your new site that tells the users that the domain has changed and it's recommended to change links (although they don't need to) as the image links will STILL stay in tact.
there's no need to do that.. you can simply use htaccess to redirect old image links to the new domain ones.
Yes I know you can do that.
But with older images, because they are aswell redirected using .htaccess, you can't redirect both.
In other words, all images uploaded in the new format (/12/2/1) will redirect fine with the .htaccess, but the older images (which are redirected using .htaccess as well) won't show up.
I tried to do this with my old image website, but the /old/ images won't show at all. And when I talked to Rod about it, he said that it couldn't be done.
Oh I see your point now.. Then he only has one option left
RewriteEngine On
RewriteRule (.*) http://share-pic.net/$1 [R=301, L]
RewriteCond %{HTTP_HOST} ^(ur-upload.de|ur-upload.com)$ [NC]
RewriteRule ^(.*)$ http://share-pic.net/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(ur-upload.de|ur-upload.com)$ [NC]
RewriteRule ^(.*)$ http://share-pic.net/$1 [R=301,L]
ServerSignature Off
Options -Indexes -MultiViews
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^api$ api.php [L]
RewriteRule ^admin/(.*) admin/index.php [L]
RewriteRule ^i/(\w*\.)(jpg|png|gif)$ i/old/$1$2 [L] #legacy images
RewriteRule ^i/thumbs/(\w*\.)(jpg|png|gif)$ i/old/$1th.$2 [L] #legacy thumbs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default