首页 > 解决方案 > Angular 子网址未在托管时打开

问题描述

我面临一个问题,即当我将我的 Angular 应用程序上传到我的主机时,它没有打开子 URL,例如,https://mywebsite.com它正在打开,但https://mywebsite.com/pricing它没有直接打开用户需要首先打开网站,然后转到另一个页面。

索引.html

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Mobile App Development Services | Web Development Services | Logo Design Services</title>
  <base href="/">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="./assets/img/favicon.png">
  <link href="https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
</head>
<body>
  <app-root></app-root>
</body>
</html>

标签: angularjsangulartypescript

解决方案


推荐阅读