我想重定向这个网址
http://192.168.1.101/project/test/wordpress/wp-content/uploads/2013/06/Sunset.jpg
主网址如下。
http://192.168.1.101/project/test/wordpress/redirect.php?file=http://192.168.1.101/project/test/wordpress/wp-content/uploads/2013/06/Sunset.jpg
如果 url 包含 .jpg、.png、.jpeg、.bmp、.png 之类的扩展名,则将其全部移至 redirect.php,文件名如下。
http://192.168.1.101/project/test/wordpress/redirect.php?file=imagefile
我当前的 .htaccess 代码
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /project/test/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /project/test/wordpress/index.php [L]
</IfModule>
# END WordPress
请帮我..