CV3 URL Redirects
From NewHaven Software Wiki
Malcolm lee (Talk | contribs) |
m (moved ECMS URL Redirects to CV3 URL Redirects) |
Revision as of 17:17, 21 October 2014
Contents |
About
URL(URI) Redirects allow you to specify a new URI for an existing resource. For example, if you change a category name and have links from search engines or other site directing to that page then you will have broken links. You can prevent this by using URI Redirects.
/category/summer-flowers >> redirect >> /category/flowers
Another common reason to use URI Redirects is to create custom landing pages. For example:
/product/10-spiral-notebook >> redirect >> /notebook.
How to
Creating URI Redirects is simple
Uploaded import files are pipe-,comma-, or tab-delimited files that contain two columns. The first is the "From URI" which should be a relative path from your domain. The other column must contain the "To URI". A full URI or a relative path from your domain. Both To and From URIs can include a query string. These are also case sensitive. If there are spaces in the original url you have to replace them with a + in the file. See below for examples.
The allowable characters are alphanumeric, "+", "-", "_", "/", "%", "!", ".", "&", "?", "=", "#"
Everything else will need to be escaped
Importing the file
After you have created an import file you can import it by going to Settings >> URI Redirects and uploading the file. After the file is finished you will receive an email with the results of the upload.
Example Import
Layout:
"from uri","to uri","should the query string be appended [y/n]"
Below is an example import file:
"/contact","/about_us","n" "/product_123","/product/123","n" "/external_site","http://www.domain.com","n" "/display?pid=123","/product/123","y" "/promo_one","/?p=one","n" "/Blog","/blog","n"
If your original URI is "/customer service" with a space, replace the space with a plus +
"/customer+service","/customer_service"