I have a site that holds about 50 folders full of images, and inside of each folder are .gif and .jpg files. here is an example:
The folder name might change for each image. There are hundreds of images.
I'd like to be able to .htaccess redirect all those files to the shared hosting's SSL Wildcard URL so I can turn them into https files like so:
where ~username is my username on the shared hosting, domain is the previous domain name, healthy is the folder name, logo.gif is the file name
Can anyone help me with the code in htaccess for this?
I'm pretty sure it can be done, but it gets dicey with the redirection to a new URL while keeping the folder name, and inserting the domain name as a folder. Has anyone pulled off anything like this before?
PHP:
http://domain.com/healthy/logo.gif
I'd like to be able to .htaccess redirect all those files to the shared hosting's SSL Wildcard URL so I can turn them into https files like so:
PHP:
https://secure.example.com/~username/domain/healthy/logo.gif
where ~username is my username on the shared hosting, domain is the previous domain name, healthy is the folder name, logo.gif is the file name
Can anyone help me with the code in htaccess for this?
I'm pretty sure it can be done, but it gets dicey with the redirection to a new URL while keeping the folder name, and inserting the domain name as a folder. Has anyone pulled off anything like this before?