Understand Default URL Pattern (2024)

In Contentstack, the URL is the location of your web property. It is made up of two parts:

  • Base URL: The consistent part or the root of your website’s address. For example, http://www.YourDomain.com
  • Relative URL: The remaining path given after the base URL. For example, /contact_us, /seo/blog/new_post

    The Relative URL is again divided into two parts:

    • Prefix URL: Denotes the path where the entry resides. For example, /SEO/blog
    • Entry-specific URL: Denotes the URL of the entry. For example, /my-first-page

    Let’s look at an example to understand this well.

    • Absolute URL: www.yourdomain.com/blog/seo/my-first-page
    • Base URL: www.yourdomain.com
    • Relative URL:

      • Prefix URL: /blog/seo
      • Entry-specific URL: /my-first page

    The Default URL Pattern feature lets you set a common URL pattern for all the entries of a content type. Once you set this feature, it will follow in all instances of URLs.

    For example, consider that you want to identify URL hits received through blogs. For this, you can add a prefix (say, “blog”) to the “Blog” content type. Now the entries within the “Blog” content type will have /blog as a prefix to their URLs.

    Once you establish a URL pattern for your entries, it auto-generates the URL each time you create an entry. However, once an entry is saved, the URL isn't automatically updated if the title changes. You can manually update the URL if needed.

    For example, if the title of your entry is “My first page,” and you define the URL pattern to be “Title,” Contentstack will automatically generate the URL of your entry as “www.yourdomain.com/my-first-page.” This eliminates the need to manually enter long, complex URLs every time you create an entry.

    Though the URLs are generated automatically using this feature, you can edit or change these URLs, if needed. This gives you the flexibility to generate more meaningful, descriptive, and SEO-friendly URLs, thereby improving your site’s performance in search results.

    In order to use this feature, you need to learn how to implement and use the Default URL Pattern.

      Understand Default URL Pattern (2024)
      Top Articles
      Latest Posts
      Article information

      Author: Mrs. Angelic Larkin

      Last Updated:

      Views: 5712

      Rating: 4.7 / 5 (47 voted)

      Reviews: 86% of readers found this page helpful

      Author information

      Name: Mrs. Angelic Larkin

      Birthday: 1992-06-28

      Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

      Phone: +6824704719725

      Job: District Real-Estate Facilitator

      Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

      Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.