Skip to content

Commit

Permalink
リダイレクトをAstroのリダイレクト機能に移行
Browse files Browse the repository at this point in the history
  • Loading branch information
ciffelia committed Aug 13, 2023
1 parent f537b62 commit e405344
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 43 deletions.
17 changes: 17 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ import prefetch from '@astrojs/prefetch'
export default defineConfig({
site: 'https://oucc.org',
compressHTML: true,
// 旧ウェブサイトでよくアクセスされていたURLにリダイレクトを設定する
redirects: {
'/about.html': '/',
'/access.html': '/',
'/activity.html': '/activity/',
'/contact.html': '/contact/',
'/join.html': '/join/',
'/link.html': '/',
'/member.html': '/',
'/part.html': '/',
'/welcomeevent.html': '/',
'/group/programming': '/',
'/group/programming/about.html': '/',
'/group/programming/activity.html': '/',
'/group/programming/works.html': '/',
'/group/handaitaisen/handai_taisen.html': '/',
},
integrations: [
image({ serviceEntryPoint: '@astrojs/image/sharp' }),
tailwind(),
Expand Down
43 changes: 0 additions & 43 deletions src/pages/[...path].astro

This file was deleted.

0 comments on commit e405344

Please sign in to comment.