Viewing 15 replies - 1 through 15 (of 44 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Does the PNG image at the bottom ever turn green when you are using chrome? Your screenshot shows the red PNG, which tells me your server isn’t server webp images. You must be using apache with mod_rewrite and mod_headers to use the rewrite rules. If you don’t know that information, check with whoever runs your server (probably your webhost)

    Thread Starter iSaumya

    (@isaumya)

    Hi thanks for your reply.
    No PNG never turns green as shows in your video. Beside my server is apache and its htaccess files support all apache rewrite rules. I’m running them on my site. This is my htacess : https://pastebin.com/ACKABnQ6
    every single rule is working fine except the webp one (as you are saying).

    Please help me out. I really wanna use webp.

    Plugin Author nosilver4u

    (@nosilver4u)

    You must have mod_headers, or it won’t work. If you don’t know, ask your webhost or server admin.

    Thread Starter iSaumya

    (@isaumya)

    I dont understand that what should I ask to my web host while all other apache rewrite rules are working properly except the webp one. TYou please tell me that what should I ask? Why that pirticular htacess code is not working in the server?

    Plugin Author nosilver4u

    (@nosilver4u)

    you need to ask them if your server has mod_headers
    mod_rewrite is only one piece of the webp rules, and is likely what all your other .htaccess rules use, but .htaccess rules can do all sorts of things besides just rewrites, and this is one of those cases.

    Thread Starter iSaumya

    (@isaumya)

    I just contacted my webhost and they said that mod_headers
    mod_rewrite is enabled on my server and gave me this output:

    root@server1 [/]# httpd -l | grep mod_rewrite

    root@server1 [/]# httpd -l | grep mod_rewrite mod_rewrite.c

    ?? What should I do now?

    Plugin Author nosilver4u

    (@nosilver4u)

    that isn’t normal output if they are correct. Try httpd -l without piping it to grep

    Thread Starter iSaumya

    (@isaumya)

    here is the output:

    Compiled in modules:
    core.c
    mod_authn_file.c
    mod_authn_default.c
    mod_authz_host.c
    mod_authz_groupfile.c
    mod_authz_user.c
    mod_authz_default.c
    mod_auth_basic.c
    mod_cache.c
    mod_disk_cache.c
    mod_include.c
    mod_filter.c
    mod_deflate.c
    mod_log_config.c
    mod_logio.c
    mod_env.c
    mod_expires.c
    mod_headers.c
    mod_usertrack.c
    mod_unique_id.c
    mod_setenvif.c
    mod_version.c
    mod_proxy.c
    mod_proxy_connect.c
    mod_proxy_ftp.c
    mod_proxy_http.c
    mod_proxy_scgi.c
    mod_proxy_ajp.c
    mod_proxy_balancer.c
    mod_ssl.c
    prefork.c
    http_core.c
    mod_mime.c
    mod_status.c
    mod_autoindex.c
    mod_asis.c
    mod_info.c
    mod_suexec.c
    mod_cgi.c
    mod_vhost_alias.c
    mod_negotiation.c
    mod_dir.c
    mod_actions.c
    mod_speling.c
    mod_userdir.c
    mod_alias.c
    mod_rewrite.c
    mod_so.c

    Plugin Author nosilver4u

    (@nosilver4u)

    Ok, good, they are both there, but I’m not sure what else to tell you. I’ve heard some servers require a slightly different setup, but you’ll have to try those out yourself. Search Google for rewrite rules for webp, and see if you can find anything else that works for you. If you get the rules too messed up, just delete the whole EWWW IO section, the settings page will let you reinsert the rules. If you find something that works, let me know so I can see if there is anything different I can do with those rewrite rules.
    Try this one for starters: https://gist.github.com/seeekr/2415528

    Thread Starter iSaumya

    (@isaumya)

    Should I replace the existing code of webp with this? or keep the both?

    Plugin Author nosilver4u

    (@nosilver4u)

    feel free to replace it. You can always restore it later.

    Thread Starter iSaumya

    (@isaumya)

    I’ve tried everything I can possibly do. Just like you my server admins are also saying that the htacess should work. There is no prblem in the server. god knows whats creating the issue.

    Plugin Author nosilver4u

    (@nosilver4u)

    One last thought. The .htaccess rules also include an AddType statement to add the mimetype for webp images, and I’m pretty sure that is mandatory to make it work properly. can you have your server admins confirm that the AddType statement is allowed (and works)?

    Thread Starter iSaumya

    (@isaumya)

    Hi man, thanks for your continuous support. Anyways, my host recently mighrated from Apache to LightSpeed server. Do you think that might me the reason for this and if that so, then what is the solution for this?

    Plugin Author nosilver4u

    (@nosilver4u)

    Never heard of lightspeed, do you mean lighttpd? I don’t know how to serve webp images on lighttpd, and have no way of testing that. I know the rewrite rules don’t work with lighttpd, as I’ve used it before at my last job. There ought to be a way to do it, I just don’t know what that is.

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘webp not working’ is closed to new replies.