2020年12月19日星期六

Changing the image directory path using codeigniter htaccess

enter image description here

i do have multiple websites hosted in my vps server , the images that is used for each website is coming from a common folder of the main website.

so it will be like ,

http://myvpsmainwebsite.com/uploads/images/{website_id-This is dynamic}/{foldername-This is dynamic}/image.jpg  

or it can be like

../../uploads/images/{website_id-This is dynamic}/{foldername-This is dynamic}/image.jpg  

The image url shows my my parent website,Imagine i have 3 websites there like ,

http://mmm.com  http://yyy.com  http://zzz.com    i need the image url's to be like   http://mmm.com/uploads/images/{website_id-This is dynamic}/{foldername-This is dynamic}/image.jpg  http://yyy.com/uploads/images/{website_id-This is dynamic}/{foldername-This is dynamic}/image.jpg  http://zzz.com/uploads/images/{website_id-This is dynamic}/{foldername-This is dynamic}/image.jpg  

How to achieve this , how to rewrite the parent website pointed url like a folder in the websites.

https://stackoverflow.com/questions/65356157/changing-the-image-directory-path-using-codeigniter-htaccess December 18, 2020 at 07:22PM

没有评论:

发表评论