What placeholders can I use for custom URLs and how do they work?

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Archived

Basic Information for Using Custom URLs<

We offer the ability to control your store's URL path for products, categories, web pages, and news items. There is a section within the Settings > Store > URL Structure that will globally control all sections of the storefront that are not specified at the product level. Using this tool you can change the path for all pages sitewide. An example of this would be if you wanted to change the path for all products, the default path (http://example.com/productname.html) to be something different like: http://example.com/products/productna....

Setting up the Default URL Structure
First we will talk about defining the default URL formats for products, categories, web pages and news items. The following custom placeholders can be used to represent certain attributes of an item:

Item
Placeholders
Description

Product
%productname%
%category%
%sku%
%upc%
- The name of the product
- The first category this product appears in
- The product code or SKU
- The UPC (Universal Product Code)

Category
%categoryname%
%parent%
- The name of the category
- The name of the parent category

Web Page
%pagename%
%parent%
- The page name
- The name of the parent

News Item
%postname%
- The name of the news post



1.) Login to your store's control panel.
2.) Click on Settings and then Store.

settingsstoremui.png

3.) Now, click on the URL Structure tab.

urlstructuretabmui.png


4.) By default Bigcommerce optimizes your URL structure as Short Search Engine Optimized URLs.  To customize your URLs choose the last radio option 'Custom Format'.

urloptionsmui.png

5.) Here you can place the custom placeholders from the table above. In this example we will be using the following placeholders: /%productname%/%category%/

urlprodcatmui_001.png

6.) Make sure to Save your changes to this page.

savebuttonmui.png


Now if you view any product pages on your storefront the path will now be: http://example.com/product/category.

Here is an example of a pair of swim trunks in the Boardshorts subcategory under the Surfing parent category.

customurlexample.png


Note:
The above placeholders will replace spaces with hyphens(-). If you do not wish to have hyphens in your URL paths then you have complete control over this from within each product individually.

Per-Product/Category/Web Page/News Item Custom URLs

When adding a product, category, web page or news item, there will be a field under the catalog information section called “URL.” This URL field is disabled by default until you’ve typed in an item name or title (such as product name). The URL field will then be auto-populated based on the URL format defined on the settings page.

You can change these URLs to be completely custom, if you wish. This example is for a Product, but you can alter these instructions for any category, web page, or news item, as well.

1.) Login to your store's control panel.
2.) Click on Products and then View Products.

viewproductsmenumui.png 

3.) Edit the product for which you wish to change the URL.

producteditmenumui.png

4.) Below the Product Categories section there will be a field called Product URL.

customurlproductmui.png

5.) You may enter a custom path into this field which will be used for this product. You need not put in any placeholders; you can directly type in what the URL should be.  This will override the Settings > Store > URL Structure setting.

Notice that spaces are replaced with dashes. All non-valid URL characters should be removed ENTIRELY from the URL (i.e. nothing should display as URL encoded such as %2C or %2F).
Photo of Drew N

Drew N, Community Manager

  • 252,294 Points 100k badge 2x thumb

Posted 5 years ago

  • 0
  • 1
Photo of Audra9315

Audra9315

  • 110 Points 100 badge 2x thumb
The previous web developer had set up the URL of the bigcommerce web site to be of the following format - company.mybigcommerce.com

However, our domain name is of the format - company.com, which is an issue for our google analytics, because once a customer clicks on a link to purchase a product, then google analytics thinks that the customer has left the site and we do not know if the customer actually purchased that product or another product, which in turn, makes it difficult to form marketing strategies.

I wanted to change the URL structure of the shopping cart to be more of a format that would match our domain name, such as - company.com/store or company.com/shop

Do I change this under Setup & Tools> Store Settings> URL Structure> Web Page URL Settings> Custom ?

What is all involved in making such change? What else will be effected? I know that we will have to change the links in our CMS, which point to the cart, but what else do we need to be made aware of?
Photo of Mike F.

Mike F., Alum

  • 184,338 Points 100k badge 2x thumb
The Storefront hosting  is our package name for the Bigcommerce system. 
Photo of Audra9315

Audra9315

  • 110 Points 100 badge 2x thumb
This means that you are hosting genesistoday.mybigcommerce.com? Or are we paying for something that we had when we were using intuit?
(Edited)
Photo of Mike F.

Mike F., Alum

  • 184,338 Points 100k badge 2x thumb
Since you signed up for the Bigcommerce site through Homestead, Homestead is billing you instead of Bigcommerce, but technically the site is hosted at Bigcommerce.

Photo of Audra9315

Audra9315

  • 110 Points 100 badge 2x thumb
Thanks for the info Mike
Photo of Mike F.

Mike F., Alum

  • 184,338 Points 100k badge 2x thumb
You're welcome.

This conversation is no longer open for comments or replies.