Title: path with slashes
Last modified: May 4, 2017

---

# path with slashes

 *  [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/path-with-slashes/)
 * I’m using this plugin to define WKURI’s for creating Let’s Encrypt certificates
   using CertBot and have run in to an issue.
 * Using CertBot’s http authentication, it generates a WKURI for each domain name
   you are signing the certificate for. So for example if you are signing example.
   com and [http://www.example.com](http://www.example.com), which both point to
   the same server, CertBot expects two different responses from two different URI’s
   under the WKURI namespace:
 * example.com/.well-known/acme-challenge/big-long-random-string-of-digits returns
   one authentication string
 * [http://www.example.com/.well-known/acme-challenge/second-big-long-random-string-of-digits](http://www.example.com/.well-known/acme-challenge/second-big-long-random-string-of-digits)
   returns a different authentication string
 * However the plugin only allows for one content to be returned for the acme-challenge
   WKURI.
 * The fix is easy, simply remove the check for slashes in the path parameter, aka
   comment out/delete lines 226-229 in the plugin:
 *     ```
           if (strstr($result, '/') !== FALSE) {
             add_settings_error($id, 'invalid_suffix', __('URI path must not contain "/"') . ' - ' . $result, 'error');
             return $valid;
           }
       ```
   
    -  This topic was modified 9 years, 1 month ago by [Greg Ross](https://wordpress.org/support/users/gregross/).

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

 * ![](https://s.w.org/plugins/geopattern-icon/well-known-uris.svg)
 * [/well-known-uris/](https://wordpress.org/plugins/well-known-uris/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/well-known-uris/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/well-known-uris/)
 * [Active Topics](https://wordpress.org/support/plugin/well-known-uris/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/well-known-uris/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/well-known-uris/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Greg Ross](https://wordpress.org/support/users/gregross/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/path-with-slashes/)
 * Status: not resolved