Jump to content

ksotiris

Members
  • Content count

    2
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    ksotiris
  • Gender
    Male
  1. ksotiris

    ULTIMATE Seo Urls 5 - by FWR Media

    Db->utf8 laguage: utf8
  2. ksotiris

    ULTIMATE Seo Urls 5 - by FWR Media

    I think there is a better approach to make mutli-language of this excellent contribution. In short form : 1) includes/functions/html_output.php change the function tep_href_link to as followings: function tep_href_link( $page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true ) { $str=Usu_Main::i()->hrefLink( $page, $parameters, $connection, $add_session_id, $search_engine_safe ); return mb_convert_encoding($str, "iso-8859-1", "UTF-8"); //this is the trick, now you get the right encoding directly from database } 2) make symlinks of product_info.php -> product_info2.php index.php -> index2.php in linux just type ln -s catalog/product_info.php catalog/product_info2.php ln -s catalog/index.php catalog/index2.php 3) .htaccess RewriteEngine On RewriteBase /catalog/ ###################################################### #products #note to work perfectly must make a symlink of products_info.php -> product_info2.php #condition: do following only if query_string not includes products_id RewriteCond %{QUERY_STRING} !products_id #rewrite "name path" to product_info2.php?products_id RewriteRule ^catalog/(.*)-p-(.*)$ product_info2\.php?products_id=$2 [L,NC,QSA] #the same if you use the standard and no rewrite #RewriteRule ^catalog/product_info\.php/(.*)-p-(.*)$ product_info2\.php?products_id=$2 [L,NC,QSA] ###################################################### ###################################################### #categories #note to work perfectly must make a symlink of index.php -> index2.php #condition: do following only if query_string not includes cPath RewriteCond %{QUERY_STRING} !cPath #rewrite "name path" to index.php?cPath RewriteRule ^catalog/(.*)-c-(.*)$ index2\.php?cPath=$2 [L,NC,QSA] #the same if you use the standard and no rewrite #RewriteRule ^catalog/index\.php/(.*)-c-(.*)$ index2\.php?cPath=$2 [L,NC,QSA] ###################################################### That 's all... It works on osc.2.3.3 !!! :thumbsup:
×