Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

v2.5:seo_urls [2010/11/15 06:00] (current)
pgmarshall created
Line 1: Line 1:
 +====== SEO Urls ======
 +===== Configuration =====
  
 +<note warning>​If you **enable SEO URLs** then you will need to **edit your .htaccess file** in the root of your catlog folder. ​ See the section below for instructions.</​note>​
 +
 +  * **Enable SEO URLs?** :: This setting enables/​disables the SEO URLs contribution globally. (Default Setting: **true**)
 +  * **Add cPath to product URLs?** :: This setting enables/​disables the option of adding the cPath parameter to the end of product pages. Eg. some-product-p-1.html?​cPath=xx (Default Setting: **false**)
 +  * **Add category parent to begining of URLs?** :: This setting enables/​disables the option of adding the category parent to the beginning of category URLs. Eg. parent-category-p-1.html (Default Setting: **true**)
 +  * **Filter Short Words** :: This setting allows a store owner to filter short words which typically add no value. Don't set this too high! (Default Setting: **true**)
 +  * **Enable SEO cache to save queries?** :: This setting enables/​disables the query cache engine globally. If disabled each URL generated will take 1 query. (Default Setting: **true**)
 +  * **Enable product cache?** :: This setting enables/​disables the option of using cache for the products. (Default Setting: **true**)
 +  * **Enable categories cache?** :: This setting enables/​disables the option of using cache for the categories. (Default Setting: **true**)
 +  * **Enable manufacturers cache?** :: This setting enables/​disables the option of using cache for the manufacturers. (Default Setting: **true**)
 +  * **Enable articles cache?** :: This setting enables/​disables the option of using cache for the articles (if installed)(Default Setting: **true**)
 +  * **Enable information cache?** :: This setting enables/​disables the option of using cache for the information pages (if installed) (Default Setting: **true**)
 +  * **Enable topics cache?** :: This setting enables/​disables the option of using cache for the article topics (if installed) (Default Setting: **true**)
 +  * **Enable automatic redirects?​** :: This setting enables/​disables the automatic 301 header redirect logic. This sends a moved permanent header for all old URLs to the new ones. This setting is highly recommended for stores that have already been indexed by spiders. (Default Setting: **true**)
 +  * **Choose URL Rewrite Type** :: This can only be set to **Rewrite**
 +  * **Enter special character conversions** :: This setting allows a store owner to enter a list of special character conversions. (Default Setting: **NULL**) Please note the format below. ​
 +    * FORMAT: char=>​conv,​ char2=>​conv2,​ char3=>​conv3 (NOTE: use a comma as the separator)
 +  * **Remove all non-alphanumeric characters?​** :: This setting allows the store owner to remove all non-alphanumeric characters from the URL. This is highly effective and will result in some interesting URLs. For example, some-product-p-1.html will become someproduct-p-1.html (Default Setting: **false**)
 +  * **Reset SEO URLs Cache** :: This setting allows the store owner to clear the SEO cache manually. (Default Setting: **false**)
 +  * **Enable SEO URL Validation** :: Enable SEO validation on your store URLs.
 +
 +===== Edit your .htaccess file =====
 +    ​
 +Open the .htaccess file with the catalog folder of your store using a suitable text editor.
 +
 +**Find this code at the bottom of the file:**
 +
 +<file php>
 +# BOF: MOD - Ultimate SEO URLs
 +## SEO Url's .htaccess file
 +## If you want to use the Apache Mod-Rewrite method for SEO URL's
 +## NOTE: This requires that you are on an apache web server with mod_rewrite enabled.
 +
 +#<​IfModule mod_rewrite.c>​
 +#Options +FollowSymLinks
 +#​RewriteEngine On
 +
 +# Change "​catalog"​ to your catalog directory name:
 +#​RewriteBase /catalog/
 +## If installed to the base home/root directory, uncomment the below code only:
 +#​RewriteBase /
 +
 +#​RewriteRule ^(.*)-p-(.*).html$ product_info.php?​products_id=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-c-(.*).html$ index.php?​cPath=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-m-([0-9]+).html$ index.php?​manufacturers_id=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?​pID=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?​tPath=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?​articles_id=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?​products_id=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?​products_id=$2&​%{QUERY_STRING}
 +#​RewriteRule ^(.*)-i-([0-9]+).html$ information.php?​info_id=$2&​%{QUERY_STRING}
 +#</​ifModule>​
 +# EOF: MOD - Ultimate SEO URLs
 +</​file>​
 +
 +**and change it to:**
 +
 +<file php>
 +# BOF: MOD - Ultimate SEO URLs
 +## SEO Url's .htaccess file
 +## If you want to use the Apache Mod-Rewrite method for SEO URL's
 +## NOTE: This requires that you are on an apache web server with mod_rewrite enabled.
 +
 +<​IfModule mod_rewrite.c>​
 +Options +FollowSymLinks
 +RewriteEngine On
 +
 +# Change "​catalog"​ to your catalog directory name:
 +RewriteBase /catalog/
 +## If installed to the base home/root directory, uncomment the below code only:
 +#​RewriteBase /
 +
 +RewriteRule ^(.*)-p-(.*).html$ product_info.php?​products_id=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-c-(.*).html$ index.php?​cPath=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-m-([0-9]+).html$ index.php?​manufacturers_id=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?​pID=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?​tPath=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?​articles_id=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?​products_id=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?​products_id=$2&​%{QUERY_STRING}
 +RewriteRule ^(.*)-i-([0-9]+).html$ information.php?​info_id=$2&​%{QUERY_STRING}
 +</​ifModule>​
 +# EOF: MOD - Ultimate SEO URLs
 +</​file>​
 +
 +<note important>​You must only remove the **#** from one of the [[http://​httpd.apache.org/​docs/​1.3/​mod/​mod_rewrite.html#​RewriteBase|RewriteBase]] lines. ​ This basically sets the root directory for the rewrite rules. ​ If your site is in a different folder then change this line accordingly.</​note>​
 +
 +  * Example of other store directories:​
 +    * If your store in the public_html folder then use **/**
 +    * If your store in the catalog sub directory then use **/​catalog**
 +    * If your store in the shop sub directory then use **/shop**
 +    * If your store in the another_example sub directory then use **/​another_example**
 +
 + ​\\ ​
 +
 +Source: [[http://​www.oscmax.com/​forums/​oscmax-v2-features-discussion/​18237-search-engine-optimization-urls.html|osCMax Forums]] - //Thanks to [[http://​www.oscmax.com/​forums/​members/​michael_s.html|michael_s]]//​
v2.5/seo_urls.txt ยท Last modified: 2010/11/15 06:00 by pgmarshall
You are here: startv2.5seo_urls
Dieses Dokuwiki verwendet ein von Anymorphic Webdesign erstelltes Thema.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0