Найден корректный robots.txt
Файл управления сканированием сайта роботами
?
Robots.txt указывает поисковым роботам, какие страницы сканировать, а какие — нет. Ошибки в файле могут случайно закрыть важные разделы от индексации.
Robots.txt настроен корректно. Размер файла: 8680 байт. Загружен за: 2сек.
Проверяемая страница не запрещена в robots.txt.
Цепочка редиректов для файла robots.txt:
http://app.lovisa.com/robots.txt
307 RedirectKeepVerb
https://app.lovisa.com/robots.txt
200 OK
Показать содержимое robots.txt
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-itunes-app" content="app-id=6739979183, app-argument=https://universal-link-service-a8ffedgwg6gzgebd.eastasia-01.azurewebsites.net/home">
<title>Download Lovisa App</title>
<style>
body {
min-height: 100vh;
margin: 0;
padding: 0;
font-family: 'Helvetica Neue', Arial, sans-serif;
background: #fafbfc;
display: flex;
flex-direction: column;
}
.ios-banner {
display: flex;
align-items: center;
background: #fff;
padding: 8px 16px;
/* 左右内边距,内容不贴边 */
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
border-radius: 0 0 13px 13px;
/* 只底部圆角更像原生 */
width: 100vw;
/* 100%宽度 */
max-width: 100vw;
position: fixed;
top: 0;
left: 0;
right: 0;
margin: 0 auto;
z-index: 100;
box-sizing: border-box;
}
.ios-banner-icon {
width: 40px;
height: 40px;
border-radius: 10px;
margin-right: 10px;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
object-fit: cover;
}
.ios-banner-text {
flex: 1;
min-width: 0;
}
.ios-banner-title {
font-weight: 600;
font-size: 17px;
color: #222;
line-height: 1.2;
}
.ios-banner-subtitle {
font-size: 13px;
color: #8e8e93;
margin-top: 1px;
}
.ios-banner-open-btn {
display: inline-block;
background: #007aff;
color: #fff;
border: none;
border-radius: 15px;
padding: 5px 19px 6px 19px;
font-size: 16px;
font-weight: 500;
margin-left: 10px;
text-decoration: none;
letter-spacing: 0.1em;
transition: background 0.18s;
box-shadow: 0 1px 3px rgba(0, 122, 255, 0.10);
}
.ios-banner-open-btn:active {
background: #0062cc;
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
border-radius: 18px;
box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.06);
padding: 2.2rem 1.2rem 1.7rem 1.2rem;
text-align: center;
max-width: 350px;
width: 92vw;
}
.app-icon {
width: 84px;
height: 84px;
border-radius: 20%;
margin-bottom: 1.3rem;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.10);
}
.app-title {
font-size: 1.5rem;
font-weight: bold;
color: #23272F;
margin-bottom: 0.7rem;
letter-spacing: 0.04em;
}
.desc {
color: #666;
font-size: 1rem;
margin-bottom: 1.5rem;
line-height: 1.4;
}
.btn {
display: block;
width: 92%;
/* 留出左右空隙 */
padding: 0.85em 0;
margin: 1rem auto 0 auto;
font-size: 1.1rem;
background: #FF80AB;
color: #fff;
border: none;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(255, 128, 171, 0.1);
cursor: pointer;
transition: background 0.2s;
text-decoration: none;
}
.btn:active {
background: #fc4c8c;
}
.store-link {
display: inline-block;
color: #2196f3;
margin-top: 0.8rem;
text-decoration: underline;
font-size: 1rem;
cursor: pointer;
}
.app-banner {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.2rem 1rem;
background: #fff;
border-radius: 18px;
box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.06);
max-width: 360px;
width: 96vw;
margin: 1.2em auto 0 auto;
/* 顶部间距小,几乎贴顶 */
}
.app-banner img {
width: 56px;
height: 56px;
border-radius: 20%;
}
.app-banner .text {
flex: 1;
padding: 0 1em;
text-align: left;
}
.app-banner .title {
font-size: 1.1em;
font-weight: bold;
}
.app-banner .subtitle {
font-size: 0.97em;
color: #666;
}
.app-banner .open-btn {
display: inline-block;
background: #FF80AB;
color: #fff;
border: none;
padding: 0.7em 1.2em;
border-radius: 10px;
font-size: 1.08em;
text-decoration: none;
font-weight: 500;
}
.app-banner .open-btn:active {
background: #fc4c8c;
}
@media (max-width: 500px) {
.container {
padding: 1.6rem 0.5rem 1.4rem 0.5rem;
}
.app-icon {
width: 66px;
height: 66px;
}
.app-title {
font-size: 1.2rem;
}
}
</style>
</head>
<body>
<div id="app"></div>
<script>
document.addEventListener("DOMContentLoaded", () => {
const ua = navigator.userAgent || navigator.vendor || window.opera;
const isAndroid = /android/i.test(ua);
const isIOS = /iPad|iPhone|iPod/.test(ua) && !window.MSStream;
const path = window.location.pathname;
//const fallbackPage = `https://www.lovisa.sg${path}`;
const appLink = window.location.href;
const intentUrl = `intent://${path}#Intent;scheme=https;package=com.lovisa.lovisa_global;end`;
const iosStore = "https://apps.apple.com/us/app/lovisa/id6739979183";
const androidStore = "https://play.google.com/store/apps/details?id=com.lovisa.lovisa_global";
const websiteUrl = "https://www.lovisa.com/";
const alreadyRedirected = sessionStorage.getItem("redirectedOnce");
const appContainer = document.getElementById("app");
if (isIOS) {
// sessionStorage.setItem("redirectedOnce", "true");
// setTimeout(() => {
// window.location = iosStore;
// }, 3000);
// window.location = appLink;
appContainer.innerHTML = `
<div class="container">
<img src="/icon.png" alt="Lovisa App Icon" class="app-icon">
<div class="app-title">Lovisa</div>
<div class="desc">
Welcome to Lovisa!<br>
Open the app to enjoy exclusive offers and<br>the latest updates.<br><br>
<strong></strong> Download Lovisa on the App Store
</div>
<a href="${iosStore}" class="btn" style="background:#212121;">Download on the App Store</a>
</div>
`;
if(!alreadyRedirected){
sessionStorage.setItem("redirectedOnce", "true");
window.location = appLink;
setTimeout(() => {
alert(123);
window.location = iosStore;
}, 3000);
}
} else if (isAndroid) {
// 渲染带 intent 的页面和按钮
appContainer.innerHTML = `
<div class="ios-banner">
<img src="/icon.png" alt="Lovisa" class="ios-banner-icon"/>
<div class="ios-banner-text">
<div class="ios-banner-title">Lovisa</div>
<div class="ios-banner-subtitle">Open in the Lovisa app</div>
</div>
<a href="${intentUrl}" class="ios-banner-open-btn">OPEN</a>
</div>
<div class="container">
<img src="/icon.png" alt="Lovisa App Icon" class="app-icon">
<div class="app-title">Lovisa</div>
<div class="desc">
Enjoy exclusive offers and updates in the Lovisa App.<br>
<strong>Didn't open?</strong> Download Lovisa on Google Play:
</div>
<a href="${androidStore}" class="btn" style="background:#212121;">Download on Google Play</a>
</div>
`;
// auto open App,only once
if (!alreadyRedirected) {
sessionStorage.setItem("redirectedOnce", "true");
setTimeout(() => {
window.location = androidStore;
}, 2000);
setTimeout(() => {
window.location = intentUrl;
}, 500);
}
} else if (!isIOS && !isAndroid) {
// fallback offical website
appContainer.innerHTML = `
<div class="container">
<img src="/icon.png" alt="Lovisa App Icon" class="app-icon">
<div class="app-title">Lovisa</div>
<div class="desc">
Welcome to Lovisa!<br>
Discover more on our official website.
</div>
<a href="${websiteUrl}" class="btn" style="background:#212121;">Visit Official Website</a>
</div>
`;
}
});
</script>
</body>
</html>