Module name: Multilanguage SEO URL
Version: 1.0
Author: Nikita_Sp
web-site:
rubika.agency |
nikita-sp.com.ua
Description: Module for creating urls like http://your-store.com/ru/category/product.html
Default language would stay http://your-store/category/product.html
Works with SEO PRO only
== INSTALL ==
Just unpack all files from "upload" directory to your store root.
WARNING! TO allow SEARCH ENGINES TO LOOK THROUGH YOUR WEBSITE on different languages open file index.php in your website root and find (~162 line):
if (isset($session->data['language']) && array_key_exists($session->data['language'], $languages) && $languages[$session->data['language']]['status']) {
PLACE BEFORE:
$language_from_url = explode("/", $request->server['REQUEST_URI']);
foreach($language_from_url as $lang){
if(array_key_exists($lang, $languages)){
$language_from_url = $lang;
break;
}
}
// If nothing was found don't apply
if(is_array($language_from_url)){
$language_from_url = false;
}
FIND:
$code = $detect;
PUT AFTER:
}elseif ($language_from_url && array_key_exists($language_from_url, $languages) && $languages[$language_from_url]['status'] ){
$code = $language_from_url;
== Do you like it? ==
If you like this module, please make me know. Maybe you would be the first who contact me and say "thanks" :)
Don't forget to rate and donate! :)
== Change LOG ==
ver 1.2
Bug with Notice: Undefined index: in /vqmod/vqcache/vq2-catalog_controller_common_seo_pro.php on line 77 is fixed
ver 1.1
Bug with doublicates en/en/ fixed
Login and write down your comment.
Login my OpenCart Account