Mister Denial Posted March 6, 2012 Share Posted March 6, 2012 Hi there, is it possible to replace the ../en/.. part of the URL, which is caused by the lanugage setting? For example, I would prefer www.mydomain.com/us_shop/blahblah.html rather than www.mydomain.com/en/blahblah.html Can this be done, and if yes, how? Thanks in advance for your assistance, your help is appreciated! Dan Link to comment Share on other sites More sharing options...
contractor Posted March 7, 2012 Share Posted March 7, 2012 Hello, Try to insert the following rulles in htaccess : RedirectMatch 301 /en/(.*) //$1 Link to comment Share on other sites More sharing options...
Mister Denial Posted March 7, 2012 Author Share Posted March 7, 2012 Hi contractor, thank you for your help. Could you detail how I should write the redirect to change /en/ into /shop/ ? Thanks a lot! Link to comment Share on other sites More sharing options...
contractor Posted March 9, 2012 Share Posted March 9, 2012 Hello, Put that code in your htaccess file . Link to comment Share on other sites More sharing options...
renamed_account_335778 Posted March 9, 2012 Share Posted March 9, 2012 Also, you must hack/override the Link.php class. Have a look at: function getLangLink Link to comment Share on other sites More sharing options...
Mister Denial Posted March 15, 2012 Author Share Posted March 15, 2012 @ seoprestashop: Okay, so it is complicated, right? @ contractor: I know that it should go into .htaccess, but should I put the code "as-is"? Don't I need to write "shop" somewhere if I want to change the ../en/.. into ../shop/.. ? Sorry if I am asking obvious things, I'm not that familiar with rewrite conditions and rules. 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