Important note

The EdgeRules feature is available only on Enterprise plans.

  1. Background

    Having two URIs responding with the same content may lead to duplicate content, and that is penalized by search engines. From a technical search engine standpoint, it’s certainly permissible for these two URL versions to contain different content. However your users may find this configuration horribly confusing — just imagine if and produced two separate experiences. Let’s ensure that the user gets the same experience each time.

  2. Rule

  3. cURL Before Rule

        $ curl -I
    HTTP/1.1 200 OK
    Date: Wed, 11 Nov 2015 02:47:50 GMT
    Content-Type: text/html
    Content-Length: 935
    Last-Modified: Thu, 06 Aug 2015 12:32:59 GMT
    Server: NetDNA-cache/2.2
    X-Cache: HIT
    Accept-Ranges: bytes
  4. cURL After Rule

        $ curl -I
    HTTP/1.1 301 Moved Permanently
    Date: Wed, 11 Nov 2015 02:36:25 GMT
    Content-Type: text/html
    Content-Length: 185
    Connection: keep-alive
    Server: NetDNA-cache/2.2
  5. Resulting Nginx Configuration Block

        location ^~ /example/ {			  
    		rewrite ^\/(.*)\/$ /$1 permanent;