Jump to content

[SOLVED] rewrite URL


peranha

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/121503-solved-rewrite-url/
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.