Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I get generated images at the original image file location instead of by the script?

0
Posted

How do I get generated images at the original image file location instead of by the script?

0

If you want the actual images with their locations intact and not showing the standard script URL parameters of the software, you would have to use the mod_rewrite tool of Apache HTTP Server. If you have Apache as your Web server and mod_rewrite enabled, you should be able to do this. To give an example on how this is done, you would first make a file called “.htaccess” having that placed in the root directory of your Web site. Here is an example of what to input: RewriteEngine on RewriteRule ^myimages/(.*)/(.*)/(.*).jpg$ veqaimagefly/?image=$1/$2/$3.jpg&size=medium This rewrites the URL “http://www.yoursite.com/veqaimagefly/?image=*/*/*.jpg&size=medium” to be accessed via “http://www.yoursite.com/myimages/*/*/*.jpg” – the (*) character would serve as random values. This would be how to keep your image files intact with their original locations. You can learn more about Apache mod_rewrite here: http://httpd.apache.org/docs/2.0/misc/rewriteguide.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123