SEO Friendly Urls

Current version: 2.0.0  Changelog!


SEO Friendly Urls is a new addon for the osCommerce CMS that will change the default urls into what a modern website's urls should be! (at least, that's what I think)

Note: there are also other addons out there BUT they do not make the rewerites as it should be.

Lets see a comparison table:

Url Details Comments
www.mystore.com/product_info.php?products_id=17 Default osCommerce urls No comments here.
www.mystore.com/product_info.php/cPath/3_10/products_id/17 Use Search-Engine Safe URLs Again no comments here. Still looks ugly and not SEO friendly.
www.mystore.com/oval-crystal-scarf-p-17.html Other osCommerce SEO urls addons Looks good but no visible category/es and uses: p-17
www.mystore.com/scarves/oval-crystal-scarf SEO Friendly Urls Looks awesome. As it should be. *

Urls possible structure examples : *

  • www.mydomain.com/category-alias
  • www.mydomain.com/category-alias/sub-category-alias
  • www.mydomain.com/category-alias/sub-category-alias/sub-category-alias
  • www.mydomain.com/category-alias/sub-category-alias/sub-sub-category-alias/sub-sub-sub-category-alias
  • e.t.c.
  • www.mydomain.com/product-alias
  • www.mydomain.com/category-alias/product-alias
  • www.mydomain.com/category-alias/sub-category-alias/product-alias
  • www.mydomain.com/category-alias/sub-category-alias/sub-category-alias/product-alias
  • www.mydomain.com/category-alias/sub-category-alias/sub-sub-category-alias/sub-sub-sub-category-alias/product-alias
  • e.t.c.

* Can also add any desired extension. Can also add language alias.

Example with language alias:

  • www.mydomain.com/en/category-alias/product-alias

Extras: You can also create alias for core pages such as specials.php, reviews.php

For example you could change specials.php to specials (www.mystore.com/specials) or even change the shopping_cart.php to kust cart => www.mystore.com/cart


Easy to install

No need to make big changes in the core.

Installation instructions can be found inside the zip file.


Super easy upgrade to a newer version

Urls will be the same, so no worries about loosing the urls aliases.

Upgrade instructions can be found inside the zip file.


Available Options:

Make it suit your needs.

 Yellow  background => new features.

 Red  background => removed features.

Options Default Details Since Version
Enable SEO Friendly Urls? False Enables or disables the SEO Friendly Urls addon? 1.0.0
Enable aliases for Products? Yes Enables or disables aliases for products. If set to "No" then default products urls will be used. 2.0.0
Enable aliases for Categories? Yes Enables or disables aliases for categories. If set to "No" then default categories urls will be used. 2.0.0
Enable aliases for Manufacturers? Yes Enables or disables aliases for manufacturers. If set to "No" then default manufacturers urls will be used. 2.0.0
Enable aliases for Pages? Yes Enables or disables aliases for pages. If set to "No" then default pages urls will be used. 2.0.0
Display language alias? Yes Displays the current language alias into the url. 1.0.0
Display default language alias? No Overrides above option because sometimes we want the default language not to be displayed but yes for the others. 1.0.0
Hide index.php from urls? No While constructing urls, if there is a url that contains index.php then it is not added in the url. This is useful when we dont want to display the ugly index.php at all. 2.0.0
Redirects:
Redirect index.php to http://www.mystore.com/ ? Yes Redirects index.php to http://www.mystore.com/ when there are no GET parameters. 2.0.0
Redirect old url to new alias url? Yes Force the use of aliases when an old url entered in the address bar. 1.0.0
301 Permanent Redirect? No Redirect old urls to new using 301 permanent. 1.0.0
Redirect not found pages to? Deleted in favor of the options bellow. index.php Input in what page user will be directed when he hits a not found page. Can also use the alias of a page. 1.0.0
Handle not found urls as simple redirect to? (No 404 status code) index.php Input in what page user will be directed when there is a not found url. Do not use alias, only the page file such as index.php. Note: that option does not produce a 404 status code. It is just a redirect. 2.0.0
Handle not found urls as 404 include page? (404 status code) Input what page will be included when producing the 404 status code. Note: do not input an oscommerce page. Leave empty so to display the home page. 2.0.0
Not found url handling method? 404 include page Select a method for handling the not found pages. 2.0.0
Aliases:
Auto create aliases? True Creates alias based on the products/categories name. 1.0.0
Lower case auto created aliases? Yes Change the auto created aliases to lower case. (This applies only to auto created aliases not the custom ones) 1.0.0
Transliterate characters to ASCII True Transliterates characters to ASCII. 1.0.0
Use aliases from default language? Yes For example: In the greek language when english is default use: gr/monitors instead of gr/othones. 1.0.0
Use custom aliases? False Custom aliases use the values from table fields products_alias and categories_alias. 1.0.0
Fix duplicate aliases? Yes Auto fixes duplicate aliases. Note: if duplicate alias found then a number will be appended at the end of the url. Note: duplicate fix is ony between pages, products and cateogries not manufacturers. 2.0.0
Full path aliases? Yes For example: http://mystore.com/dvd-movies/action/speed vs http://mystore.com/speed. 1.0.0
Cache Aliases:
Cache aliases? Yes Caches aliases to mysql or file or apc. 1.0.0
Reset Aliases Cache? No resets cache. 1.0.0
Days to store Cache? 3 How many days a cache will be kept before auto deleting itself. Set 0 to not auto delete. 1.0.0
Extras:
Filter Short Words? 1 When creating a link from a product name you may want to remove the shorter words like a | or | at | the .. etc. Set 0 for not filtering any short words. 1.0.0
Urls extension? Input the extension you desire to be appended at the end of the urls. For example: html. 1.0.0
Products Urls extension? Input the extension you desire to be appended at the end of the products urls. For example: html
Tip: enter the backslash char / if you want your urls to end with /
2.0.0
Categories Urls extension? Input the extension you desire to be appended at the end of the categories urls. For example: html
Tip: enter the backslash char / if you want your urls to end with /
2.0.0
Manufacturers Urls extension? Input the extension you desire to be appended at the end of the manufacturers urls. For example: html
Tip: enter the backslash char / if you want your urls to end with /
2.0.0
Page Urls extension? Input the extension you desire to be appended at the end of the pages urls. For example: html
Tip: enter the backslash char / if you want your urls to end with /
2.0.0
Re-index root pages in the root? No Discovers new pages added in the root so to make it possible to alias them? (This option auto changes back to No when finishes it's operation.) 2.0.0
Remove SEO Friendly Urls Ultimate Edition ? :-( No Do you want to remove SEO Friendly Urls Ultimate Edition? Note: it does not delete the seo_friendly_urls.php class. By setting Yes the SEO Friendly Urls Ultimate Edition will be auto removed after a visit on any page in your front store. 1.0.0
Version: 2.0.0 Current version of SEO Friendly Urls Ultimate Edition. Not editable. Used by the class. 2.0.0

If you have any questions, do not hesitate contacting me.