Short URLs in ePages6 | → 6.17.39 | Created: 6.0.7; Updated: 6.17.5 |
Table of Contents |
Starting with ePages 6.0.6 it is possible to configure alternate and shorter URLs calling single shop pages.
Default URL:
http://www.myshop.de/epages/DemoShop.sf/de_DE/?ObjectPath=/Shops/DemoShop/Products/lt_0401107001
New Short URL:
http://www.myshop.de/Leatherman-Pocket-Survival-Tool
The Short URL follows the schema [ShopDomain]/[ShortUrlId]. The merchant can generate Short URLs for all pages that are based on objects of the ContentObject class. These are:
It is not possible to use Short URLs for:
Results in search engines contain - besides page details and content - the URL of the page. Having the URL short and informative is helpful and recommended:
Short URLs are
Duplicate content causes trouble with most search engines - there is more than one URL pointing to the same page/content. To avoid issues by having i. e.
http://www.meinshop.de/epages/DemoShop.sf/de_DE/?ObjectPath=/Shops/DemoShop/Products/lt_0401107001 http://www.meinshop.de/Leatherman-Pocket-Survival-Tool http://server/epages/DemoShop.sf/?ObjectPath=/Shops/DemoShop/Products/lt_0401107001&ViewAction=ViewProductViaPortal&Locale=de_DE&et_cid=1&et_lid=1
ePages Short URL feature comes with template changes, so called canonical links (html tag <link rel="canonical" href="..."></link>).
All pages with a defined ShortUrlId in the used language gets the canonical link added to the html head:
<link rel="canonical" href="http://[Domain]/[ShortUrlId]" />
As a result, the search engines use and count only hits for the defined canonical URLs and show only those URLs in the search results list as a native index.
ShortUrlIds may not be longer than 255 characters.
If Short URLs cannot be activated or generated, check the following settings.
File /etc/apache2-epages/envvars defines with environment variable APACHE_SHORTURL_EXCEPT hosts on which short URL rewrite is not applied.
Example:
APACHE_SHORTURL_EXCEPT="localhost 127.0.0.1"
A request from a host defined in APACHE_SHORTURL_EXCEPT (separated by spaces) does not lead to short URL rewrite.
After changing /etc/apache2-epages/envvars Apache must be restarted (reload is not sufficient).
File /etc/apache2-epages/extra/httpd_mod_rewrite.conf defines on which short URL rewrite is not applied. It is not necessary to change the default:
RewriteCond %{REQUEST_URI} !^/icons_closed/ RewriteCond %{REQUEST_URI} !^/epages/ RewriteCond %{REQUEST_URI} !^/Monitor/ RewriteCond %{REQUEST_URI} !^/WebRoot/ RewriteCond %{REQUEST_URI} !^/robots.txt RewriteCond %{REQUEST_URI} !^/cgi-bin/ RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/monitor.pl RewriteCond %{REQUEST_URI} !^/Maintenance/ RewriteCond %{REQUEST_URI} !^/WebSecure/ RewriteCond %{REQUEST_URI} !^/ShopExport/ RewriteCond %{REQUEST_URI} !^/rs/ RewriteCond %{REQUEST_URI} !^/api/ RewriteCond %{REQUEST_URI} !\.php RewriteCond %{REQUEST_URI} !\.cgi RewriteCond %{REQUEST_URI} !^/webservertest/