Problem on Page Redirection based on record type

I’m using classic version. 

There are two different page for each record type but we have standard view button override with visualforce page. if user click on view button the page has to look at the record type and redirect to correct detail page based on record type.