Hi,
I have few user profile pages which are created dynamically. So, I have one parent page for them and each of those pages are created on the basis of parameter passed to them.
When user is in “inactive” state, I want the profile page to return 404 error.
I don’t want to do following:
- Redirect the page to some other page by checking user status in “on page load”
- Change content of page to something generic which says “This user is inactive…”
That is because both of these are not SEO friendly behaviours. I just want to throw either 404 or 302 error from server side. How do I achieve that?
Thanks,
Mukesh