apache服务器vue路由History mode页面刷新返回404

2018-10-25 dingshangchao 服务器

1.apache开启rewrite模块

2.虚拟主机配置Allowoverride为all

3..htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>


评论(0) 浏览(1544)

tp5项目更换服务器报错500

2018-10-25 dingshangchao php开发

修改php配置打开报错后显示框架内某一行某个符号有问题,tp5要求php5.4以上,phpinfo了一下显示版本5.3....

评论(0) 浏览(1573)

网站备案号:京ICP备11043289号-1 北京市公安局网络备案 海1101084571
版权所有 北京育灵童科技发展有限公司 Copyright © 2002-2024 www.elight.cn, All Rights Reserved