Remove netlify app from redirect rule
This commit is contained in:
@@ -3,7 +3,7 @@ import { redirect } from '@sveltejs/kit';
|
|||||||
export const load = ({ url }) => {
|
export const load = ({ url }) => {
|
||||||
console.log('url', url.hostname);
|
console.log('url', url.hostname);
|
||||||
|
|
||||||
if (url.hostname === 'classroomio.com' || url.hostname === 'classroomio.netlify.app') {
|
if (url.hostname === 'classroomio.com') {
|
||||||
throw redirect(301, 'https://about.classroomio.com');
|
throw redirect(301, 'https://about.classroomio.com');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user