ViArt - PHP Shopping Cart
Select your currency:
American DollarBritish Pound
13. Friendly URls
Prev Index Next
Friendly URLs feature is an important SEO facility which allows you to increase the traffic to your website. ViArt PHP shopping cart provides two options for creating fURLs: either manually or automatically by the sofware itself. The next question is to how to activate friendly URLs for your shop? Please, go to Administration > System Global settings and find the settings as on the screenshot below:



In order to do this please first turn on the feature (Activate Friendly URLs), select how you want these URLs to be generated (Auto-generate Friendly URLs) and extensions ( Friendly Extension). These are general settings for friendly URLs. However, note that you have to set up your apache as well. Please create a .htaccess file in your root folder and insert the following code:
<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /friendly_url.php [L] 
</IfModule>
In case this Rewrite Rule does not work, then we would recommend you to insert the below string in the .htaccess file:
ErrorDocument 404 /friendly_url.php
After that please restart the apache. Your friendly URL option should be active now. You can set up friendly URLs for individual products at Administration > Products > Products&Categories > your product > 'Edit' link > 'Friendly URL' field.

Note: Please, note that if ViArt Shop is running from some sub-folder, e.g. http://www.some-web-site.com/some-sub-folder/ then the path to friendly_url.php script should contain /some-sub-folder too, like:
RewriteRule . /some-sub-folder/friendly_url.php [L]
or
ErrorDocument 404 /some-sub-folder/friendly_url.php

How to configure fURLs on your IIS:
  1. Open IIS Manage
  2. Right Click on the web site node and choose properties
  3. Click on the Custom Errors Tab
  4. Scroll down until you see the HTTP Error -- 404
  5. Double click on 404 to open the "Error Mapping Properties" dialog
  6. Change the Message Type to URL
  7. For the URL enter in /friendly_url.php
  8. Click OK and Then OK again

You can also refer to this page to get more information on this topic:http://www.prusak.com/archives/2006-01-23/ipb-seo-friendly-urls-with-iis

Custom Friendly URLs for default page like index.php, products.php

From version 3.4 our shopping cart enables to create custom friendly URLs for the default pages, like index.php. Please keep in mind that if you want to create custom fURLs, your general friendly URLs are to be already activated. In case they are activated, you can start with creating custom fURLs. For this go to Administration > CMS > Custom Friendly URLs, click the ‘Add New’ link and fill the necessary fields, for instance:
  • Script Name * - manuals.php
  • Friendly URL * - manuals
Press the ‘Add’ button and check your site. If you select to show fURLs with html extension in your Global Settings then when clicking the manual menu item you will see that the new URL will be manuals.html. Quite easy:).
Prev Index Next
ViArt - PHP Shopping Cart