Change temporary redirect to permanent, fix robots.txt
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Disallow: /
|
||||
Allow: /ps7
|
||||
Allow: /pks35k
|
||||
|
||||
Sitemap: https://kspsuti.ru/sitemap.xml
|
||||
@@ -19,7 +19,7 @@ export function LastUpdateAt({ date }: {
|
||||
<>
|
||||
<div className='flex md:justify-end px-4 md:h-0'>
|
||||
<span className='text-sm text-border md:whitespace-pre-wrap md:text-right'>
|
||||
Последнее обновление:{'\n'}{now && formatDistanceStrict(date, now, { locale: dateFnsRuLocale, addSuffix: true })}
|
||||
Последнее обновление:{'\n'}{now && date.getTime() <= now ? formatDistanceStrict(date, now, { locale: dateFnsRuLocale, addSuffix: true }) : 'только что'}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ export async function getServerSideProps(): Promise<GetServerSidePropsResult<Rec
|
||||
return {
|
||||
redirect: {
|
||||
destination: '/ps7',
|
||||
permanent: false
|
||||
permanent: true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user