angularjs - 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>
解决方案
推荐阅读
- java - MultipartUpload 多个文件的附加信息
- python - 与 SIFT 匹配后如何应用 Delaunay 变换
- json - 如何在 Flutter 中初始化现有模型中的新变量
- swift - 以编程方式禁用标签栏故事板外观设置
- generics - 如何制作可以表现得像整数的自定义结构
- python - print(range(…)) 语句输出是“range(…)”而不是整数值
- traefik - 带有 Traefik 的码头软件
- ios - iOS:带有视频的神经风格迁移
- django - Django DurationField 和 00:00:00 与 NULL
- javascript - 正则表达式:如何跨多行/段落捕获“字符串”(字符串末尾可能有“锚”)