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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -