import type { NextConfig } from "next"; const nextConfig: NextConfig = { async redirects() { return [ { source: '/loyaly_php/index.php', destination: '/', permanent: true, }, { source: '/index.php', destination: '/', permanent: true, }, { source: '/loyaly_php/about_us.php', destination: '/about_us', permanent: true, }, { source: '/about_us.php', destination: '/about_us', permanent: true, }, { source: '/loyaly_php/use_cases.php', destination: '/use_cases', permanent: true, }, { source: '/use_cases.php', destination: '/use_cases', permanent: true, }, { source: '/loyaly_php/solutions_page.php', destination: '/solutions_page', permanent: true, }, { source: '/solutions_page.php', destination: '/solutions_page', permanent: true, }, { source: '/loyaly_php/blog_main.php', destination: '/blog_main', permanent: true, }, { source: '/blog_main.php', destination: '/blog_main', permanent: true, }, { source: '/loyaly_php/blog_single_page.php', destination: '/blog_single_page', permanent: true, }, { source: '/blog_single_page.php', destination: '/blog_single_page', permanent: true, }, { source: '/loyaly_php/contacts.php', destination: '/contacts', permanent: true, }, { source: '/contacts.php', destination: '/contacts', permanent: true, }, { source: '/loyaly_php/faq.php', destination: '/faq', permanent: true, }, { source: '/faq.php', destination: '/faq', permanent: true, }, ]; }, }; export default nextConfig;