i have a vanity url where my users type in http://www.mysite.com/user
but some users type in mysite.com/USER
and it redirects them to error pages because "USER" is not the same as" user" in my database.
What i want is a maybe a php or htaccess code to change whatever they type e.g
http://www.mysite.com/USER
http://www.mysite.com/uSER
http://www.mysite.com/usER

be redirected to
http://www.mysite.com/user

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.