-4

I Want to run that website: www.example.com/generate/myimageweb.php?nickname=Animo2233 from that website: www.example.com/generate/Animo2233.png

Is it possible in .htacces file?

Please help me.

4

1 回答 1

1

将此 .htaccess 放入您的网络应用程序的生成目录中。

RewriteEngine On
#if requested file/directory exists do not rewrite!
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.png$        myimageweb.php?nickname=$1       [L]
于 2013-10-20T19:11:55.857 回答