I am working on colorurl.com, and I need it so that users can enter colorurl.com/00ff00 (or some variations of this) and see the correct page. However, with a bare domain problem, users who type colorurl.com/somepath will be redirected to www.colorurl.com/.
Is there a way to detect this in python and then redirect the user to where they wanted to go (with www. Added?)
EDIT:
Clarification: in my web hosting configuration, I have colorurl.com forward at www.colorurl.com. They do not support path preservation (1 and 1). I have to discover the previous path and redirect users to it.
- User goes to colorurl.com/path
- The user is redirected to www.colorurl.com
- The application should determine what the path is.
- The application sends the user to www.colorurl.com/path
source share