Example if user type http://myurl.com/arti
it will redirect to 404 page where
i present url like
/article
(simmilar kind of Links)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use a catch-all URL, e.g. put
url(r"^(.*)$"as your last entry inurls.pyand then use some string similarity measure to find a likely url. See this question for examples. Or this one for more of them.Or perhaps just a simple
startswith()loop over known urls will do?Your view probably should return a response with a redirect (result code
302or303) if there is a single match – and if there are none (or multiple) a404page with list of possible matches is the way to go.