[mod_rewrite] w/ PHP script

Discuss practical ways rearrange URLs using mod_rewrite.

[mod_rewrite] w/ PHP script

Postby HamuZ » Fri Mar 17, 2006 11:31 am

I want when someone tries to show a page from my server [.png]
to a php script with the HTTP_HOST and the REQUEST_URI.
I have tried this:

Code: Select all
Options  +FollowSymLinks

RewriteEngine  on
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(png)$ http://domain.com/get.php?url=%{HTTP_HOST}%{REQUEST_URI} [NC] 


But it dont work.
Can someone fix my code?
Thanks :)
HamuZ
 
Posts: 1
Joined: Fri Mar 17, 2006 11:23 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: Google [Bot] and 24 guests

cron