I am looking for a developer specialized in Prestashop. The PS 1.5.6.1 shop is done and live. The project consists in creating the HTACCESS only, in order to manage the multi-lingual / multi-domain shop. (We don't want to use the Multi-Store option)
The shop, [login to view URL], is in 5 languages: EN, NL, FR, DE, IT
There are 5 domains to associate with the languages (all with the same host)
When a user visits [login to view URL] , he should see the contents of [login to view URL]
When a user visits [login to view URL] , he should see the contents of [login to view URL]
When a user visits [login to view URL] , he should see the contents of [login to view URL]
When a user visits [login to view URL] , he should see the contents of [login to view URL]
When a user visits [login to view URL] , he should see the contents of [login to view URL]
We have upgraded from Prestashop 1.3 to Prestashop 1.5.6.1 , the below code from 1.3 used to work fine to manage assign each language to each domain, but it doesn't work for 1.5.6.1.
We need someone to rewrite it taking into account the differences between PS 1.3 and PS 1.5.
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# [login to view URL] - [login to view URL]
# URL rewriting module activation
RewriteEngine on
# Start lang-xx redirect to proper domain
RewriteRule ^lang-en/?(.*)$ [login to view URL]$1 [R=301,L]
RewriteRule ^lang-nl/?(.*)$ [login to view URL]$1 [R=301,L]
RewriteRule ^lang-fr/?(.*)$ [login to view URL]$1 [R=301,L]
RewriteRule ^lang-de/?(.*)$ [login to view URL]$1 [R=301,L]
RewriteRule ^lang-it/?(.*)$ [login to view URL]$1 [R=301,L]
# End lang-xx redirect to proper domain
RewriteCond %{HTTP_HOST} ^[login to view URL]
RewriteRule ^(.*)$ [login to view URL]$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^[login to view URL]
RewriteRule ^(.*)$ [login to view URL]$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^[login to view URL]
RewriteRule ^(.*)$ [login to view URL]$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^[login to view URL]
RewriteRule ^(.*)$ [login to view URL]$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^[login to view URL]
RewriteRule ^(.*)$ [login to view URL]$1 [R=301,L]
Options All -Indexes
<Files "*.tpl">
Order allow,deny
Deny from all
</Files>
# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$[login to view URL] [L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$[login to view URL] [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$[login to view URL] [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /[login to view URL]$3&isolang=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /[login to view URL]$2&isolang=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /[login to view URL]$2&isolang=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /[login to view URL]$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /[login to view URL]$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /[login to view URL]$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /[login to view URL]$1 [QSA,L,E]
RewriteRule ^site-map$ /[login to view URL] [QSA,L,E]
RewriteRule ^contact-us$ /[login to view URL] [QSA,L,E]
RewriteRule ^all-specials$ /[login to view URL] [QSA,L,E]
RewriteRule ^new-products$ /[login to view URL] [QSA,L,E]
RewriteRule ^top-sellers$ /[login to view URL] [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /[login to view URL]$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /[login to view URL]$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]
SetEnv PHP_VER 5
SetEnv register_globals 0
# Catch 404 errors
ErrorDocument 404 /[login to view URL]