Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:33:50+00:00 2026-06-11T06:33:50+00:00

I need to ask something about htaccess redirection. I know there are lots of

  • 0

I need to ask something about htaccess redirection. I know there are lots of questions about htaccess, rewrite and pretty profile urls, but I’ve never found real answer of my question and I hope I can find with your help.

That pretty url rules as you know would work like changing “mydomain.com/profile.php?username=myuser” to “mydomain.com/myuser”.

But let’s say I have a rewrite rule for my login url : http://www.mydomain.com/login

That means if user try to have exact same username as “login” how could you handle that possible confliction on rewrite?

actually possible solution might be minimum character limitation like minimum 6 chars, but it’s not looking elegant since you loose your option to use more than 6 chars like “/resetpassword”.

Probably a “banned words” kind of array control would be a solution when user picks a username but then you need to foresee all kind of possibilities which shouldn’t be used.

Many of giant websites use this rewrite methods. Particularly Facebook uses “/username” kind of rule for pages and users in the same time.

Anyway, if someone has what is the magic behind that kind of url redirection/rewrite rules please help me out on this 🙂

Thanks

P.S. : I know there is another solution like “/user/username” but nowadays pointing directly to the base url and shortening full url is getting more and more popular, and I just need to understand possibilities on that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:33:52+00:00Added an answer on June 11, 2026 at 6:33 am

    Why not just have a login sub directory in the root of your site that contains the relevant files for logging a user in? That way, the rewrite rules in your htaccess file only have to deal with the whole user redirect stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know about SortedSet , but in my case I need something that implements
I know this sounds like a dumb question but I need to ask this.
I've read through a few questions that address something similar, but wanted to ask
I know there are plenty of questions about 3d rotation that have been answered
I am creating some application, facebook application and i need to ask you something.
I'm fairly new to NHibernate, and I need to ask a couple of questions
Don't ask me why but I need to do the following: string ClassName =
I need to ask a question about HTTP protocol. I am trying to develop
I know you guys hate helping with homework, but I thought I might ask
Got a little problem i asked about it before but maybe i didnt ask

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.