Jump to content

.htaccess and mod_rewrite help


speaker219

Recommended Posts

Don't know exactly where I should post this.

I need to know what I should use to redirect any file with the extension .jpg to redirect to a php with the name of the file requested as a string.

For example, if someone went to:

http://example.com/pics/test.jpg

I want it to redirect to:

http://example.com/pics/view.php?img=test.jpg

 

Sorry If this is the wrong forum, don't know where else to put it, or who else to ask.

Any help would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/61051-htaccess-and-mod_rewrite-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.