Title: Problems with path
Last modified: June 23, 2020

---

# Problems with path

 *  Resolved [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/)
 * Hello.
    I have some problems with paths.
 * Firstly after pugin installation and activation it regenerate all images into*.
   webp format. Thats good, but now it automatically regenerate all images into 
   its own maked directories.
 * By default my images uploads to `public_html/t.tefida.com/2020/06`
 * Webp Pluggin automatically creates following directories and put automatically
   regenerated files into it:
 * `public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.
   com/2020/06`
 * `public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.
   com/2020/06`
 * How to make that Webp pluggin change directories to my default?
 * > P.S.: Actually i don’t want manually get all regenerated images and put it 
   > into my default directory over Cpanel.
 * Regards
    Michael
    -  This topic was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This topic was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This topic was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This topic was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This topic was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblems-with-path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13026696)
 * Hi [@zee_dee](https://wordpress.org/support/users/zee_dee/),
 * Thank you for your message.
 * Tell me, have you read the plugin FAQ? There are answers to many questions. Remember
   to always read the FAQ plugs and other similar thread before adding in the support
   thread.
 * Many problems can be solved without adding a thread, because the issue has already
   been raised in the FAQ or other thread. And that saves a lot of time. I will 
   be grateful if you understand me and appreciate your and my time. I work on plugins
   in my free time. I am alone and there are more and more users of the plugin.
 * Problems are often repetitive. They often result from a custom server or page
   configuration. That is why I am asking you to try to find a solution in the FAQ
   or other forum threads. I can not write back to every person the same things.
   I try to develop a FAQ so that everyone can find answers to repetitive problems.
 * There is even a special question in the FAQ that has a list of things I need 
   to help you. The information that something is not working or I have some error,
   unfortunately, does not allow me to help because I know nothing about your website.
   With more people using plugin, I would know if there was a global problem.
 * Please read the entire FAQ carefully and look at other threads in this forum.
   If you can not find anything that you contact me please, providing me all the
   information you need.
 * And I have one more request – let me know when the problem is resolved. Unfortunately,
   many people I try to help after receiving a solution will not even inform you
   that it worked. And this helps me a lot in providing better and better technical
   support.
 *  Thread Starter [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13026725)
 * I found an answer but I need your assistance.
 * Here is the following filter which I should add to end of functions.php page.
 *     ```
       Directory path with converted WebP files (relative to the root directory):
   
       add_filter('webpc_uploads_webp', function($path) {
         return 'wp-content/uploads-webpc';
       });
       ```
   
 * And I should change the path to:
 *     ```
       add_filter('webpc_uploads_webp', function($path) {
         return 'public_html/t.tefida.com/';
       });
       ```
   
 * Am I correct?
 * Regards
    Michael
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13026826)
 * How did he modify the location of the files from the media library?
 * And again, please send me the information I requested. Without them I can not
   help you. First of all, I need server configuration. Please read the FAQ question
   for the list of information I need.
 *  Thread Starter [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13032503)
 * Hello, how to change the path that Webp Plugin used by default to adding converted
   webp images?
 * By default Plugin used following path:
    `public_html/wp-content/uploads-webpc/
   uploads/home/xxxxxx/public_html/t.tefida.com/2020/06`
 * I need the following:
    `public_html/t.tefida.com/2020/06`
 * Regards
    Michael
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13035092)
 * [@zee_dee](https://wordpress.org/support/users/zee_dee/), tell me please, did
   you read my message above?
 *  Thread Starter [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13035470)
 * Sure, I’ve changed it by myself, and now all my images upload to the t.tefida.
   com folder, and to this message I attach the screenshot of server configuration.
 * [http://prnt.sc/t6et57](http://prnt.sc/t6et57)
 * Regards
    Michael
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13036181)
 * So everything works now?
 *  Thread Starter [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13036424)
 * Actually don’t, I move all my new converted images to t.tefida.com over Cpanel
   by manually.
 * Plugin used the following path for newerly converted images by default:
    `public_html/
   wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.com/2020/06`
 * I need that newerly converted images were into:
    `/public_html/t.tefida.com/2020/
   06`
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13036478)
 * The converted images can not be in the same directory as original. This option
   is blocked.
 *  Thread Starter [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13037203)
 * Yes, it can, after installation and activation plugin first time it converts 
   all my images which were in *.png and *.jpg format into *.webp into the same 
   directory as original images.
 * And now all my new added images plugin automatically move to the following directory:
 * `public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.
   com/2020/06`
 * I need that plugin adds converter images to the same directory as the original
   files with images.
 * First and the main reason why to do it is the path of images.
 * —-=Example:=—-
 * When I add images to the published materials I wrote the next line:
 * [https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg](https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg)
 * but when I write [https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webp](https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webp)
   it does not works cause image has different path as exactly
 * `public_html/wp-content/uploads-webpc/uploads/home/xxxxxx/public_html/t.tefida.
   com/2020/06`
 * And I cannot use it.
 * My steps to solve this problem: go to Cpanel and manually move images from the
   mentioned directory above to the directory with original images. And after that,
   I can use following path:
 * `https://tefida.com/t.tefida.com/2020/06/Cyberpunk2077435x435-1.jpg.webp`
 * How to make that converter *.webp images save to the same directory with uploaded*.
   jpg and *.png images?
 * Regards
    Michael
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13039212)
 * The converted images can not be in the same directory as original.
 *  Thread Starter [Zee_Dee](https://wordpress.org/support/users/zee_dee/)
 * (@zee_dee)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13040396)
 * That’s exactly what I need.
    How to do it?
    -  This reply was modified 5 years, 9 months ago by [Zee_Dee](https://wordpress.org/support/users/zee_dee/).
 *  Plugin Author [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * (@mateuszgbiorczyk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13050671)
 * Tell me please what is incomprehensible in my answer? The plugin saves files 
   in a separate directory. This is how the plugin works and cannot be changed. 
   This is done for the safety of users. Thanks to this, I am sure that the plugin
   will never damage the original files.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Problems with path’ is closed to new replies.

 * ![](https://ps.w.org/webp-converter-for-media/assets/icon-256x256.png?rev=2636288)
 * [Converter for Media - Optimize images | Convert WebP & AVIF](https://wordpress.org/plugins/webp-converter-for-media/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-converter-for-media/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-converter-for-media/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-converter-for-media/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-converter-for-media/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-converter-for-media/reviews/)

## Tags

 * [path](https://wordpress.org/support/topic-tag/path/)

 * 13 replies
 * 2 participants
 * Last reply from: [Mateusz Gbiorczyk](https://wordpress.org/support/users/mateuszgbiorczyk/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/problems-with-path/#post-13050671)
 * Status: resolved