Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Error Response Settings and a redirect to index.html with SEO?

I am using the Custom Error Response Settings for my AngularJS SPA so that when a user tries to go directly to a page and it gives a 404 not found then it redirects to index.html.

What I would like to know is does this in any way cause a problem for the search engines or would they not even notice the 404 and the redirect to the index.html?

like image 565
Alan2 Avatar asked Jan 20 '26 12:01

Alan2


1 Answers

You can (and should) return 200 on those urls.

Based on your tag, I presume you're hosting on CloudFront. You can there set a custom response code 200 for 404 errors, by editing a CloudFront distribution and going to Error Pages tab.

enter image description here

like image 166
tomfa Avatar answered Jan 23 '26 21:01

tomfa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!