.HTACCESS: Server Redirect
Posted: Wed Oct 27, 2010 11:57 pm
Is their a mod_rewrite or any other .htaccess function to do this?
A client side script references the image:
And the mod_rewrite sees that and redirects the query to:
The limitations:
If the file is accessed from a browser the actual url doesn't change but gets just the contents.
Their is no physical file their its just the .htaccess working its magic.
Must work with different files like:
A client side script references the image:
And the mod_rewrite sees that and redirects the query to:
A client side script references the image:
Code: Select all
http://www.example.com/re/direct/image.jpgCode: Select all
http://www.example.com/here/now/image.jpgIf the file is accessed from a browser the actual url doesn't change but gets just the contents.
Their is no physical file their its just the .htaccess working its magic.
Must work with different files like:
A client side script references the image:
Code: Select all
http://www.example.com/re/direct/image3.jpgCode: Select all
http://www.example.com/here/now/image3.jpg