2012-09-24 55 views
0

我的Prestashop 1.4x安裝在子目錄中,例如:在Apache服務器上的http://mydomain.com/prestashop/ 。 可以選擇從管理員生成Htaccess文件,這些文件被複制到/ prestashop /目錄中。它是正確的位置,或者我應該把htaccess到父(根)目錄?哪裏應該在Prestashop 1.4x中放置htaccess文件?

例如:

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution 
# WARNING: PLEASE DO NOT MODIFY THIS FILE MANUALLY. IF NECESSARY, ADD YOUR SPECIFIC CONFIGURATION WITH THE HTACCESS GENERATOR IN BACK OFFICE 
# http://www.prestashop.com - http://www.prestashop.com/forums 


<IfModule mod_rewrite.c> 
# URL rewriting module activation 
RewriteEngine on 

# URL rewriting rules 
RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /store/product.php?id_product=$2&isolang=$1 [QSA,L] 
... ... ... 
... ... ... 
RewriteRule ^en/best-sales$ /store/best-sales.php?isolang=en [QSA,L] 
RewriteRule ^en/page-not-found$ /store/404.php?isolang=en [QSA,L] 
</IfModule> 

# Catch 404 errors 
ErrorDocument 404 /store/404.php 

<IfModule mod_expires.c> 
    ExpiresActive On 
    ExpiresByType image/gif "access plus 1 month" 
    ExpiresByType image/jpeg "access plus 1 month" 
    ExpiresByType image/png "access plus 1 month" 
    ExpiresByType text/css "access plus 1 week" 
    ExpiresByType text/javascript "access plus 1 week" 
    ExpiresByType application/javascript "access plus 1 week" 
    ExpiresByType application/x-javascript "access plus 1 week" 
    ExpiresByType image/x-icon "access plus 1 year" 
</IfModule> 

FileETag INode MTime Size 
<IfModule mod_deflate.c> 
    <IfModule mod_filter.c> 
     AddOutputFilterByType DEFLATE text/html text/css text/plain text/javascript application/javascript application/x-javascript 
    </IfModule> 
</IfModule> 
+0

您可以發佈您htaccess文件正確的位置? –

回答