Charazad Posted April 11, 2016 Share Posted April 11, 2016 Hi there, In mysite.fr I have an older version of presta (1.3) And I updated it to 1.6 in a subfolder: new.mysite.fr They both have 2 languages : fr and en - In the english language of the 1.3 version , the url is like this: mysite.fr/lang-en/...- But in the new version (1.6) the url is like this: new.mysite.fr/en/...How can I change the language directory's name (/en/) in 1.6 to look like : lang-en ? Is there anyone had the same problem? Link to comment Share on other sites More sharing options...
tuk66 Posted April 11, 2016 Share Posted April 11, 2016 Why? Because of Google? Link to comment Share on other sites More sharing options...
tuk66 Posted April 11, 2016 Share Posted April 11, 2016 You can try to add this rewrite rule to the root .htaccess file. # 301 --- http://www.test.com/lang-??/url.php => http://www.test.com/??/url RewriteRule ^lang-([a-z]{2})/(.*)\.php$ /$1/$2? [L,R=301] 1 Link to comment Share on other sites More sharing options...
El Patron Posted April 11, 2016 Share Posted April 11, 2016 Hi, Google does not recommend lang-en for example, but /en/ or in best case /en-(country code). I would only worry about this change if an old link (lang-en) did not resolve properly to /en/ 1 Link to comment Share on other sites More sharing options...
Charazad Posted April 11, 2016 Author Share Posted April 11, 2016 (edited) Thank you for replying quickly, Yeah like El Patron said, I'm worry that would affect those pages ranking. And if google recommended the /xx/ , how can it be solved? Thanks tuk66, I'll try it and I'll get back to u ! Edited April 11, 2016 by Charazad (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted April 11, 2016 Share Posted April 11, 2016 Thank your replying quickly, Yeah like El Patron said, I'm worry that would affect those pages ranking. And if google recommended the /xx/ , how can it be solved? Thanks tuk66, I'll try it and I'll get back to u ! I would test it without changing anything to see if native resolves internally, I don't recommend 'redirects' unless there is no other possible way as that hits SEO 1 Link to comment Share on other sites More sharing options...
Charazad Posted April 11, 2016 Author Share Posted April 11, 2016 I added the rule to .htaccess and it worked great, thanks everyone 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