Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento重定向到xampp仪表板_Xampp_Magento2 - Fatal编程技术网

Magento重定向到xampp仪表板

Magento重定向到xampp仪表板,xampp,magento2,Xampp,Magento2,我已将我的live网站移动到localhost xampp。在数据库中编辑数据库文件和配置URL。刷新缓存并通过命令重新编制索引 我创建了一个工作正常的虚拟主机,并在上次安装时显示了magento安装。但是,来自服务器的新实时站点无法正常工作。该站点正在路由到本地主机/仪表板 我已经删除了pub和pub/static中的htaccess文件。将其替换为默认的magento安装访问。现在看起来像这样 <IfModule mod_php5.c> php_flag engine 0 <

我已将我的live网站移动到localhost xampp。在数据库中编辑数据库文件和配置URL。刷新缓存并通过命令重新编制索引

我创建了一个工作正常的虚拟主机,并在上次安装时显示了magento安装。但是,来自服务器的新实时站点无法正常工作。该站点正在路由到本地主机/仪表板

我已经删除了pub和pub/static中的htaccess文件。将其替换为默认的magento安装访问。现在看起来像这样

<IfModule mod_php5.c>
php_flag engine 0
</IfModule>

<IfModule mod_php7.c>
php_flag engine 0
</IfModule>

# To avoid situation when web server automatically adds extension to path
Options -MultiViews

<IfModule mod_rewrite.c>
    RewriteEngine On

    ## you can put here your pub/static folder path relative to web root
    #RewriteBase /magento/pub/static/

    # Remove signature of the static files that is used to overcome the browser cache
    RewriteRule ^version.+?/(.+)$ $1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l

    RewriteRule .* ../static.php?resource=$0 [L]
    # Detects if moxieplayer request with uri params and redirects to uri without params
    <Files moxieplayer.swf>
        RewriteCond %{QUERY_STRING} !^$
        RewriteRule ^(.*)$ %{REQUEST_URI}? [R=301,L]
     </Files>
</IfModule>

############################################
## setting MIME types

# JavaScript
AddType application/javascript js jsonp
AddType application/json json

# HTML

AddType text/html html

# CSS
AddType text/css css

# Images and icons
AddType image/x-icon ico
AddType image/gif gif
AddType image/png png
AddType image/jpeg jpg
AddType image/jpeg jpeg

# SVG
AddType image/svg+xml svg

# Fonts
AddType application/vnd.ms-fontobject eot
AddType application/x-font-ttf ttf
AddType application/x-font-otf otf
AddType application/x-font-woff woff
AddType application/font-woff2 woff2

# Flash
AddType application/x-shockwave-flash swf

# Archives and exports
AddType application/zip gzip
AddType application/x-gzip gz gzip
AddType application/x-bzip2 bz2
AddType text/csv csv
AddType application/xml xml

<IfModule mod_headers.c>

    <FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2|html|json)$>
        Header append Cache-Control public
    </FilesMatch>

    <FilesMatch .*\.(zip|gz|gzip|bz2|csv|xml)$>
        Header append Cache-Control no-store
    </FilesMatch>

</IfModule>

<IfModule mod_expires.c>

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires

    ExpiresActive On

    # Data
    <FilesMatch \.(zip|gz|gzip|bz2|csv|xml)$>
        ExpiresDefault "access plus 0 seconds"
    </FilesMatch>
    ExpiresByType text/xml "access plus 0 seconds"
    ExpiresByType text/csv "access plus 0 seconds"
    ExpiresByType application/json "access plus 0 seconds"
    ExpiresByType application/zip "access plus 0 seconds"
    ExpiresByType application/x-gzip "access plus 0 seconds"
    ExpiresByType application/x-bzip2 "access plus 0 seconds"

    # CSS, JavaScript, html
    <FilesMatch \.(css|js|html|json)$>
        ExpiresDefault "access plus 1 year"
    </FilesMatch>
    ExpiresByType text/css "access plus 1 year"
    ExpiresByType text/html "access plus 1 year"
    ExpiresByType application/javascript "access plus 1 year"
    ExpiresByType application/json "access plus 1 year"

    # Favicon, images, flash
    <FilesMatch \.(ico|gif|png|jpg|jpeg|swf|svg)$>
        ExpiresDefault "access plus 1 year"
    </FilesMatch>
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"

    # Fonts
    <FilesMatch \.(eot|ttf|otf|svg|woff|woff2)$>
        ExpiresDefault "access plus 1 year"
    </FilesMatch>
    ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
    ExpiresByType application/x-font-ttf "access plus 1 year"
    ExpiresByType application/x-font-otf "access plus 1 year"
    ExpiresByType application/x-font-woff "access plus 1 year"
    ExpiresByType application/font-woff2 "access plus 1 year"

</IfModule>

php_标志引擎0
php_标志引擎0
#避免web服务器自动向路径添加扩展时出现的情况
选项-多视图
重新启动发动机
##您可以将相对于web根目录的发布/静态文件夹路径放在此处
#重写基本/magento/pub/static/
#删除用于克服浏览器缓存的静态文件的签名
重写规则^version.+?/(.+)$$1[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-L
重写规则。*../static.php?资源=$0[L]
#检测带uri参数的moxieplayer请求是否重定向到不带参数的uri
重写cond%{QUERY_STRING}^$
重写规则^(.*)$%{REQUEST_URI}?[R=301,L]
############################################
##设置MIME类型
#JavaScript
AddType应用程序/javascript jsonp
AddType应用程序/json
#HTML
AddType文本/html
#CSS
AddType文本/css
#图像和图标
AddType图像/x图标图标图标
AddType图像/gif
AddType图像/png
AddType图像/jpeg jpg
AddType图像/jpeg
#SVG
AddType图像/svg+XMLSVG
#字体
AddType应用程序/vnd.ms-fontobject eot
AddType应用程序/x-font-ttf ttf
AddType应用程序/x-font-otf otf
AddType应用程序/x-font-woff woff
AddType应用程序/font-woff2 woff2
#闪光
AddType应用程序/x-shockwave-flash swf
#档案和出口
AddType应用程序/zip gzip
AddType应用程序/x-gzip gz gzip
AddType应用程序/x-bzip2 bz2
AddType文本/csv
AddType应用程序/xml
头附加缓存控制公共
标头附加缓存控制无存储
############################################
##添加默认过期标题
## http://developer.yahoo.com/performance/rules.html#expires
过期于
#资料
ExpiresDefault“访问加0秒”
ExpiresByType text/xml“访问加0秒”
ExpiresByType文本/csv“访问加0秒”
ExpiresByType应用程序/json“访问加0秒”
ExpiresByType应用程序/zip“访问加0秒”
ExpiresByType应用程序/x-gzip“访问加0秒”
过期按类型应用程序/x-bzip2“访问加0秒”
#CSS、JavaScript、html
ExpiresDefault“访问权限加1年”
ExpiresByType文本/css“访问加1年”
ExpiresByType text/html“访问加1年”
ExpiresByType应用程序/javascript“访问加1年”
ExpiresByType应用程序/json“访问加1年”
#法维康,图像,闪光灯
ExpiresDefault“访问权限加1年”
ExpiresByType image/gif“访问加1年”
过期按类型图像/png“访问加1年”
过期按类型映像/jpg“访问加1年”
过期按类型图像/jpeg“访问加1年”
ExpiresByType图像/svg+xml“访问加1年”
#字体
ExpiresDefault“访问权限加1年”
ExpiresByType应用程序/vnd.ms-fontobject“访问加1年”
按类型应用程序到期/x-font-ttf“访问加1年”
过期按类型应用程序/x-font-otf“访问加1年”
过期按类型应用程序/x-font-woff“访问加1年”
过期按类型应用程序/font-woff2“访问加1年”
该站点在.com/中可见,并且已断开
请建议我如何使其工作

在数据库上运行此查询:
从“core\u config\u data”中选择*,其中的“path”如“%web%”

web/unsecure/base\u url和web/secure/base\u url必须如下所示: http://localhost/projectname/