Prestashop:新域仍指向旧url,无法访问后端

Prestashop:新域仍指向旧url,无法访问后端,prestashop,Prestashop,我正在克隆我的店铺,准备进行一次可怕的升级()。“我的店铺”已启动并运行在我的根目录(/)的子文件夹中(例如:mydomain.com/shop/) 我遵守了所有的指示,即: 在我的根目录(/)中创建了一个新文件夹->/newfolder/ 已将prestashop数据库导出到我的硬盘 已将所有prestashop文件复制到硬盘(使用FTP) 创建新数据库并导入本地备份 已将我的所有文件从硬盘上载到新文件夹 使用新的数据库凭据更新了myconfig/settings.inc.php (还更新了

我正在克隆我的店铺,准备进行一次可怕的升级()。“我的店铺”已启动并运行在我的根目录(/)的子文件夹中(例如:
mydomain.com/shop/

我遵守了所有的指示,即:

  • 在我的根目录(/)中创建了一个新文件夹->
    /newfolder/
  • 已将prestashop数据库导出到我的硬盘
  • 已将所有prestashop文件复制到硬盘(使用FTP)
  • 创建新数据库并导入本地备份
  • 已将我的所有文件从硬盘上载到新文件夹
  • 使用新的数据库凭据更新了my
    config/settings.inc.php
  • (还更新了
    config/settings.inc.old.php
    config/settings.old.php
    以防万一)
  • 将my
    ps\u shop\u url
    表的
    physical\u uri
    字段更新为
    /newfolder/
  • 未编辑
    ps\u配置
    SSL\u域
    字段,因为域保持不变(例如:
    mydomain.com
  • 甚至从
    cache/smarty/cache
    cache/smarty/compile
    删除了所有文件,除了
    index.php
  • 已删除
    newfolder/.htaccess
  • 已清除浏览器cookies和缓存(多次)
此时,我尝试连接到我的新域(例如:
mydomain.com/newfolder
),我被重定向到我的旧url(例如:
mydomain.com/shop

然后我尝试访问我的新店铺的后台(例如:
mydomain.com/newfolder/admin1
),当我输入凭证时,我被重定向到完全相同的登录页面,没有任何错误消息

我错过了什么? 感谢您的帮助, 谢谢 C

顺便说一句:

  • Prestashop(两个文件夹)的版本均为1.6.0.14
  • 站点托管在1和1服务器上
  • 数据库是mysql 5.1,用于当前商店,5.5用于克隆商店
编辑#1: 这是我的
newfolder/.htaccess

`选项+FollowSymLinks

# ~~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

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>


# Disable Multiviews
Options -Multiviews

RewriteEngine on


#Domain: lademo.fr
RewriteRule . - [E=REWRITEBASE:/shop/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
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]
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]
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]
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]
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]
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]
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
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
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
<IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
        Header add Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>

<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"
    ExpiresByType image/svg+xml "access plus 1 year"
    ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
    ExpiresByType application/font-woff "access plus 1 year"
    ExpiresByType application/x-font-woff "access plus 1 year"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
    ExpiresByType font/opentype "access plus 1 year"
    ExpiresByType font/ttf "access plus 1 year"
    ExpiresByType font/otf "access plus 1 year"
    ExpiresByType application/x-font-ttf "access plus 1 year"
    ExpiresByType application/x-font-otf "access plus 1 year"
</IfModule>

<IfModule mod_headers.c>
    Header unset Etag
</IfModule>
FileETag none
<IfModule mod_deflate.c>
    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype
    </IfModule>
</IfModule>

#If rewrite mod isn't enabled
ErrorDocument 404 /shop/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
#~~开始~~不要删除此注释,当再次生成.htaccess时,Prestashop将自动将代码保留在此注释之外
#.htaccess由PrestaShop电子商务开源解决方案自动生成
# http://www.prestashop.com - http://www.prestashop.com/forums
分离过滤器发动机关闭
secfilters可以关闭
SetEnv HTTP_MOD_重写
#禁用多视图
选项-多视图
重新启动发动机
#域名:lademo.fr
重写规则[E=基础:/shop/]
重写规则^api$api/[L]
重写规则^api/(.*)$%{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1[QSA,L]
#图像
重写规则^([0-9])(\-[\u a-zA-Z0-9-]*)?([0-9]+)?/.+\.jpg$%{ENV:REWRITEBASE}img/p/$1/$2$3.jpg[L]
重写规则^([0-9])([0-9])(\-[\u a-zA-Z0-9-]*)?([0-9]+)?/.+\.jpg$%{ENV:REWRITEBASE}img/p/$1/$2/$3$4.jpg[L]
重写规则^([0-9])([0-9])([0-9])(\-[\u a-zA-Z0-9-]*)?([0-9]+)?/.jpg$%{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg[L]
重写规则^([0-9])([0-9])([0-9])([0-9])(\-[\u a-zA-Z0-9-]*)?([0-9]+)?/.jpg$%{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg[L]
重写规则^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[\u 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]
重写规则^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[\u a-zA-Z0-9-]*)?([0-9]+)/.jpg$%{ENV:REWRITEBASE}img/p/$1/$2/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg[L]
重写规则^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[u a-zA-Z0-9-])?([0-9]+)/。+\.jpg$%{ENV:REWRITEBASE}img/p/$1/$3/$4/$6/$7/$1$2$3$4$5$7$8$9.jpg[L]
重写规则^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[u a-zA-Z0-9-]*)?([0-9]+)/。+\.jpg$%{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$8/$1$2$3$4$6$7$8/$9$10.jpg]
重写规则^c/([0-9]+)(\-[\.*U a-zA-Z0-9-]*)([0-9]+)?/.+\.jpg$%{ENV:REWRITEBASE}img/c/$1$2$3.jpg[L]
重写规则^c/([a-zA-Z-]+)([0-9]+)?/.+\.jpg$%{ENV:REWRITEBASE}img/c/$1$2.jpg[L]
#IE和fancybox的AlphaImageLoader
重写规则^images\u ie/?([^/]+)\(jpe?g | png | gif)$js/jquery/plugins/fancybox/images/$1.$2[L]
#调度员
RewriteCond%{REQUEST_FILENAME}-s[或]
RewriteCond%{REQUEST_FILENAME}-l[或]
RewriteCond%{REQUEST_FILENAME}-d
重写规则^.*$-[NC,L]
重写规则^.*${ENV:REWRITEBASE}index.php[NC,L]
AddType应用程序/vnd.ms-fontobject.eot
AddType字体/ttf.ttf
AddType字体/otf.otf
AddType应用程序/x-font-woff.woff
标题添加访问控制允许源“*”
过期于
ExpiresByType image/gif“访问加1个月”
过期按类型图像/jpeg“访问加1个月”
ExpiresByType图像/png“访问加1个月”
ExpiresByType文本/css“访问加1周”
ExpiresByType文本/javascript“访问加1周”
ExpiresByType应用程序/javascript“访问加1周”
ExpiresByType应用程序/x-javascript“访问加1周”
过期按类型图像/x图标“访问加1年”
ExpiresByType图像/svg+xml“访问加1年”
ExpiresByType image/vnd.microsoft.icon“访问加1年”
过期按类型应用程序/font woff“访问加1年”
过期按类型应用程序/x-font-woff“访问加1年”
ExpiresByType应用程序/vnd.ms-fontobject“访问加1年”
ExpiresByType字体/opentype“访问加1年”
ExpiresByType字体/ttf“访问加1年”
ExpiresByType字体/otf“访问加1年”
按类型应用程序到期/x-font-ttf“访问加1年”
过期按类型应用程序/x-font-otf“访问加1年”
标题未设置Etag
FileTag无
AddOutputFilterByType DEFLATE text/html text/css text/javascript应用程序/javascript应用程序/x-javascript字体/ttf应用程序/x-font-ttf字体/otf应用程序/x-font-otf字体/opentype
#如果未启用“重写模式”
ErrorDocument 404/shop/index.php?控制器=404
#~~结束~~不要