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

  • 0
  • 1
  • Question
  • Updated 5 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, Alum

  • 262,816 Points 100k badge 2x thumb

Posted 6 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,678 Points 100k badge 2x thumb
Hi Audra9315,  There are many things you could potentially do with the domain, but it looks like it's not hosted with us.  I'll try to point you in the right direction. It seems this thread may  be slightly off topic unless you are wanting to customize other urls within the site such as the urls for product pages. 

What is the actual domain name you are using? And, where is it hosted?



Mike
Photo of Audra9315

Audra9315

  • 110 Points 100 badge 2x thumb
genesistoday.mybigcommerce.com and to my knowledge we are being billed by you guys on a monthly basis
Photo of Mike F.

Mike F., Alum

  • 184,678 Points 100k badge 2x thumb
That is actually a subdomain of Bigcommerce.  If you register your own domain, it will not have any reference to Bigcommerce.  If you have not registered a personalized domain name, we can help you with that. One is included in your hosting plan so there's no extra cost to add it.  So, for example you could register something like "genesistoday.com" or "genesistoday.net"   etc.   Once it's registered then we can guide you on pointing it to your Bigcommerce store.

Just reply here if would like some help doing this.

Mike
Photo of Audra9315

Audra9315

  • 110 Points 100 badge 2x thumb
Yes, we have genesistoday.com and we are using it. I do not know why the developers before me set things up the way that they have, but if you go genesistoday.com and click on the "Buy Today" button, then you will see that it goes to http://genesistoday.mybigcommerce.com/

Are you saying that the store is on another hosting platform, other than the one that you guys provide?

Photo of Mike F.

Mike F., Alum

  • 184,678 Points 100k badge 2x thumb
Ok,  I see.... according to the public whois record, that domain is registered through Tierranet Inc. and the name servers are pointed to ns1.stabletransit.com  & ns2.stabletransit.com.

I am not familiar with that company, but the way the domain is currently set up is that it points to what appears to be an ordinary website, but when you click one of the Add to Cart buttons or the Buy Today button, it then links to the Bigcommerce subdomain.

Since the domain is not registered with Homested and the nameservers are not pointed to Homestead, we don't have the ability to edit or make the necessary changes for you.  However here is a link directly to the Bigcommerce support site that should help you out: https://support.bigcommerce.com/questions/1382/How+do+I+use+my+domain+name+with+my+store%3F

For your last question above, "yes", we are a reseller of the Bigcommerce webstores.  We do not actually host these sites.

Mike



(Edited)
Photo of Audra9315

Audra9315

  • 110 Points 100 badge 2x thumb
Can I ask what we are being charged for, on a monthly basis by you guys? Subscription fee - Storefront Professional - Monthly - $29.99
Photo of Mike F.

Mike F., Alum

  • 184,678 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,678 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,678 Points 100k badge 2x thumb
You're welcome.

This conversation is no longer open for comments or replies.