need a help in htaccess - please help



Hi there

I need a help to create a .htaccess file to:


convert such urls:
http://mydomain.com/getpicture/33.jpg


to


http://mydomain.com/getpicture.php?foid=33


auctually I need a .htaccess that upload it to a folder like
'getpicture' or root. and then when it recieve a request to view
'getpicture/XXXX.jpg' it redirect/open this page:
'/getpicture.php?foid=XXXX'.


I am sure it's possible via 'mod_rewrite'. note that it would be enough

if it's possible to convert
http://mydomain.com/getpicture/XXXX.PHP


request to:


http://mydomain.com/getpicture.php?foid=XXXX


also.


It's urgent :(
Thanks
Mehdi

.



Relevant Pages

  • Re: Password protected webpage
    ... then create a htaccess file and upload it to the same folder - that should overwrite the old one. ... It is working well EXCEPT the .htaccess and the .htpasswd files are hidden on the server. ...
    (microsoft.public.publisher.webdesign)
  • Re: OT: hotlink protection?
    ... >>> The code did go into the .htaccess file. ... > want to block all sites from linking to my images. ... Then, if that environment variable is set, and the request included a jpg, ... Anthony Wieser ...
    (alt.internet.search-engines)
  • Re: Mod_rewrite and PHP headers
    ... If data is POSTed to a PHP page and the request ... my .htaccess file is as follows ... RewriteCond %-f ...
    (comp.lang.php)
  • Re: Setting up a page that will intercept all pages that do not already exist?
    ... > I would like to setup my site so that when a page is request that does not ... > or any other webserver. ... When using a .htaccess file you only catch the 404 error and you don't need ...
    (comp.lang.php)
  • Re: Junk messages comimg via my website form Please help
    ... the htaccess file can password protect a folder but I can foresee several problems. ... When Pub uploads files, it normally does so to the root directory, which would be fine. ... That folder would probably have to have a subfolder, /index_files, where Pub stores all the images and other pages, unless the user wanted only a text file. ...
    (microsoft.public.publisher)