Php 将presta移动到其他位置

Php 将presta移动到其他位置,php,mod-rewrite,prestashop,Php,Mod Rewrite,Prestashop,我把我的商店从exampledomain.com/prestashop搬到differentitdomain.com。现在,如果我进入differentdomain.com,服务器提供商告诉我必须将文件上传到public\u html,但是如果我键入differentdomain.com/index.php,一切都正常。我试图修改数据库中的shop\uURL值,但似乎没有任何效果。当我进入differentitdomain.com时,如何使商店出现 这是我的.htaccess: # ~~star

我把我的商店从
exampledomain.com/prestashop
搬到
differentitdomain.com
。现在,如果我进入
differentdomain.com
,服务器提供商告诉我必须将文件上传到
public\u html
,但是如果我键入
differentdomain.com/index.php
,一切都正常。我试图修改数据库中的
shop\uURL
值,但似乎没有任何效果。当我进入
differentitdomain.com
时,如何使商店出现

这是我的.htaccess:

# ~~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_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on

RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]

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

# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [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>

#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
#~~开始~~不要删除此注释,当再次生成.htaccess时,Prestashop将自动将代码保留在此注释之外
#.htaccess由PrestaShop电子商务开源解决方案自动生成
# http://www.prestashop.com - http://www.prestashop.com/forums
SetEnv HTTP_MOD_重写
重新启动发动机
重写规则[E=REWRITEBASE://]
重写规则^api$api/[L]
重写规则^api/(.*)$%{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1[QSA,L]
#IE和fancybox的AlphaImageLoader
重写规则^images\u ie/?([^/]+)\(jpe?g | png | gif)$js/jquery/plugins/fancybox/images/$1.$2[L]
AddType应用程序/vnd.ms-fontobject.eot
AddType字体/ttf.ttf
AddType字体/otf.otf
AddType应用程序/x-font-woff.woff
标题添加访问控制允许源“*”
#如果未启用“重写模式”
ErrorDocument 404/index.php?控制器=404
#~~end~~不要删除此注释,当再次生成.htaccess时,Prestashop将自动将代码保留在此注释之外

等等。。。什么?对不起,我不明白。你能说得更具体点吗?有点问题,因为我必须在我的域地址中添加/index.php。在其他情况下,它不起作用(我认为这是因为.httacces)请用您的htaccess代码更新您的问题。此外,我怀疑缺少自动目录索引。如果您使用的是Apache,则可以将
DirectoryIndex.php
添加到htaccess@Justinlurman工作很完美。谢谢。我也找到了这个错误的原因。我在父目录中有index.html和index.php。