apache - Remove dots from url via .htaccess -
i'm working on server status , works fine, except can't .htaccess file put out url ark.kazuto.de/312142448.png because grabs ip.
rewriteengine on rewritecond %{the_request} \ /+status\.php\?ip=([^&\ ]+) rewriterule ^ /%1.png? [l,r] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/\.]+)\.png$ /status.php?ip=$1 [l,qsa]
can me real quick?
you can use rule:
rewriteengine on rewritecond %{the_request} \ /+status\.php\?ip=([^&\s]+) rewriterule ^ /%1.png? [l,r] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.+?)\.png$ status.php?ip=$1 [l,qsa,nc]
Comments
Post a Comment