peranha Posted August 27, 2008 Share Posted August 27, 2008 How can I get http://www.website.com/getimage.php?id=C:/website/pics/avatars/75f623134468b269841a53da460221b17daca231.jpg to become http://www.website.com/pics/avatars/75f623134468b269841a53da460221b17daca231.jpg htaccess file Options +FollowSymlinks RewriteEngine on RewriteRule ^getimage.php?id=(.*)\.(jpg|gif|jpeg|bmp) http://www.website.com/$1\.$2 The above doesnt work, from what I can fine online that should give me http://www.website.com/C:/website/pics/avatars/75f623134468b269841a53da460221b17daca231.jpg Anybody know of how I can do this?? I dont use htaccess much so i am confused at why this isnt working. Quote Link to comment https://forums.phpfreaks.com/topic/121503-solved-rewrite-url/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.