title: 404 Page On Prestashop Multistore
body: <p>I've just enabled multistore in my 1.6.1 prestashop and added a new shop besides of my default shop.<br/>
  <strong>Default shop address:</strong> <a href="http://lak-lak.ir">http://lak-lak.ir</a><br/>
  <strong>new multi-store address:</strong> <a href="http://lak-lak.ir/ghods">http://lak-lak.ir/ghods</a><br/></p>
  
  <p>It seems everything is fine in home page of new shop however refereing to pages like contact-us, best-saled and other pages, Prestashop displays 404 error page.</p>
  
  <p>How can this be fixed?</p>
  
  <p><br/><strong>P.S.</strong> URL rewriting is also enabled on my shop.
  <br/>Here is the content of .htaccess file:</p>
  
  <pre><code># ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
  # http://www.prestashop.com - http://www.prestashop.com/forums
  
  &lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_env.c&gt;
  SetEnv HTTP_MOD_REWRITE On
  &lt;/IfModule&gt;
  
  RewriteEngine on
  
  
  #Domain: lak-lak.ir
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule . - [E=REWRITEBASE:/]
  RewriteRule ^api$ api/ [L]
  
  RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  
  # Images
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
  # AlphaImageLoader for IE and fancybox
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  
  
  #Domain: lak-lak.ir
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule . - [E=REWRITEBASE:/]
  RewriteRule ^api$ api/ [L]
  
  RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^ghods$ /ghods/ [L,R]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^ghods/(.*) /$1 [L]
  
  # Images
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
  # AlphaImageLoader for IE and fancybox
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  
  # Dispatcher
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^.*$ - [NC,L]
  RewriteCond %{HTTP_HOST} ^lak-lak.ir$
  RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
  &lt;/IfModule&gt;
  
  AddType application/vnd.ms-fontobject .eot
  AddType font/ttf .ttf
  AddType font/otf .otf
  AddType application/x-font-woff .woff
  &lt;IfModule mod_headers.c&gt;
      &lt;FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$"&gt;
          Header add Access-Control-Allow-Origin "*"
      &lt;/FilesMatch&gt;
  &lt;/IfModule&gt;
  
  #If rewrite mod isn't enabled
  ErrorDocument 404 /index.php?controller=404
  
  # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  </code></pre>