Hessellund Posted December 20, 2010 Share Posted December 20, 2010 I have attached an updated Link.php and Tools.php. They are based on Feature:* Flexible friendly rewriting of the iso-lang part of the url.Creates possibily to use:http://www.domain.tld/isolang/category/producthttp://www.domain.tld/your-pre-fix-isolang/category/producthttp://www.domain.tld/etc-prefix-isolang/category/productinstead of:http://www.domain.tld/lang-isolang/category/producthttp://www.domain.com/en/ vs. http://www.domain.com/lang-en/Language prefix "lang-" can be substituted with anything.Link.php is updates to use configuration "PS_REWRITING_LANG_PREFIX" to store the language prefix.* Default is still "lang-"Tools.php is updated to generate correct .htaccessMissing:* Gui frontend to change PS_REWRITING_LANG_PREFIX ** PS_REWRITING_LANG_PREFIX is stored in database table ps_configurationAttachment added to feature request: http://www.prestashop.com/bug_tracker/view/6488/I will add them to this forum, when I get back to my home-pc.EDIT:Files attached to thread - applies to PretaShop 1.4.0.4 Link.php Tools.php Link to comment Share on other sites More sharing options...
Hessellund Posted December 23, 2010 Author Share Posted December 23, 2010 Attached files for PrestaShop 1.4.0.5 (beta 1) Link.php Tools.php Link to comment Share on other sites More sharing options...
Hessellund Posted December 30, 2010 Author Share Posted December 30, 2010 Updated for PrestaShop 1.4.0.6 (beta 2) Link.php Tools.php Link to comment Share on other sites More sharing options...
Abh Posted January 24, 2011 Share Posted January 24, 2011 Any way of getting rid of isolang completly? Link to comment Share on other sites More sharing options...
Hessellund Posted January 25, 2011 Author Share Posted January 25, 2011 It would require a bit more editing in these to files.PrestaShop should be more flexible in this matter.I agree, that if you have only one language the isolang extension does not make sense. Link to comment Share on other sites More sharing options...
Abh Posted January 27, 2011 Share Posted January 27, 2011 Could you please look into it when you have the time? I noticed several people asked for this, i'm sure we'll all be grateful for a solution. Link to comment Share on other sites More sharing options...
tafisa Posted February 3, 2011 Share Posted February 3, 2011 That should be an option, imagine that I have 3.000 URL submited on google and if I change version all my URL are changed and of course penalized everywere !!!!!!!!!! Link to comment Share on other sites More sharing options...
vietnam Posted March 28, 2011 Share Posted March 28, 2011 the prefix broke all my old links. I serious thinking to remaining at 1.3.6 until this is going to be fixedEDIT : Found the answer http://www.prestashop.com/forums/viewreply/407582/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now