我正在尝试在我的服务器上部署我的项目
heroku
http://mywebpage.com/event/12
我得到“找不到404”。我想做一些事情,以便在默认情况下重定向到
index.php/index.html
http://mywebpage.com
这是我的文件夹的结构:
index.php this file is required by heroku and contains:
<?php header("Location: index.html"); ?>
index.html
css/
assets/
js/
my index.html的示例
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SGC</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="/styles.0f20b4a1e9dce59276ba.css"></head>
<body >
<app-root></app-root>
<script type="text/javascript" src="/runtime.967e7535c76ed4c4fe77.js"></script><script type="text/javascript" src="/polyfills.7037a817a5bb670ed2ca.js"></script><script type="text/javascript" src="/scripts.87f6e2e16f38d8ede974.js"></script><script type="text/javascript" src="/main.372aa1d600b96fb16558.js"></script></body>
</html>