Difference between revisions of "Recommended URL Configuration"
NeuCartAdmin (Talk | contribs) (→Setup) |
NeuCartAdmin (Talk | contribs) (→Setup) |
||
Line 20: | Line 20: | ||
Setup for custom URLs is done once, and it is technical, but after setting it up, a store owner never needs to think about configuration again. Custom URLs function as part of the ''.htaccess'' functionality that is present on most web servers. | Setup for custom URLs is done once, and it is technical, but after setting it up, a store owner never needs to think about configuration again. Custom URLs function as part of the ''.htaccess'' functionality that is present on most web servers. | ||
+ | === .htaccess file === | ||
+ | === NeuCart configuration === | ||
− | + | ==== URL and Folder Name ==== | |
+ | The first thing that needs to be configured is to determine how the URLs will look: will it include the folder where your store is located or not?. Usually it is one of these choices: | ||
+ | # example.com/some-product | ||
+ | # example.com/store/some-product | ||
− | + | Based on this decision, the [[URL Preferences]] field, {{ob|Start of Canonical Name}} should be configured as one of these choices, respectively: | |
− | + | # http://example.com/ | |
− | + | # http://example.com/store/ | |
− | + | ==== Store Folder ==== | |
− | + | The {{ob|Store Folder}} field in [[URL Preferences]] must be configured to indicate the folder of the store. This value is usually "store/" (based on our examples here). | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | URL Preferences | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | == Ongoing Configuration == | |
− | + | Each [[product]] or [[category]] must be configured with the text that is the URL. This field should include the text "my-product" to make a complete URL of <code>http://example.com/store/my-product</code>. Any time the Custom URL text changes for a product or category, the .htaccess file is rewritten. | |
− | my-product | + | |
− | + | == See also == | |
− | + | * [[URL Preferences]] | |
− | + | {{footer}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Revision as of 19:32, 26 November 2014
There are a number of ways to display URLs for products and categories within a NeuCart store. This article discusses NeuCart's recommended configuration for URLs.
|
Contents
Background
- Main article: URL Preferences
By default, products show a URL like: example.com/store/productdetail.php?product=123
. A URL like this is not memorable, and it is also unfriendly to search engines. Some other methods create more human-readable URLs without any external/technical configuration, like:
- http://example.com/store/productdetail.php?sku=SomeSku
- http://example.com/store/productdetail.php?item=SomeItemName
NeuCart allows Wikipedia-like URLs, such as: example.com/store/My_Great_Song_(MP3_Download)
, but this is not the preferred method. The preferred style of URL looks like this: example.com/store/my-great-song-mp3-download
. NeuCart refers to this as "Custom URLs", or sometimes "Purely Custom URLs" (to distinguish from auto-alphabetical Custom URLs).
Setup
Setup for custom URLs is done once, and it is technical, but after setting it up, a store owner never needs to think about configuration again. Custom URLs function as part of the .htaccess functionality that is present on most web servers.
.htaccess file
NeuCart configuration
URL and Folder Name
The first thing that needs to be configured is to determine how the URLs will look: will it include the folder where your store is located or not?. Usually it is one of these choices:
- example.com/some-product
- example.com/store/some-product
Based on this decision, the URL Preferences field, [Start of Canonical Name] should be configured as one of these choices, respectively:
Store Folder
The [Store Folder] field in URL Preferences must be configured to indicate the folder of the store. This value is usually "store/" (based on our examples here).
Ongoing Configuration
Each product or category must be configured with the text that is the URL. This field should include the text "my-product" to make a complete URL of http://example.com/store/my-product
. Any time the Custom URL text changes for a product or category, the .htaccess file is rewritten.