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 3845898
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:18:53+00:00 2026-05-19T16:18:53+00:00

I recently posted a question about creating vanity URLs on my site and while

  • 0

I recently posted a question about creating vanity URLs on my site and while I got many great answers, I am curious to see what was wrong with my original idea:

Here is the problem:
I currently have ugly URLs that look like this:
http://www.hikingsanfrancisco.com/hiker_community/hiker_public_profile.php?community_member_id=2

What I want is something elegant like this:
http://www.hikingsanfrancisco.com/alex-genadinik

What my proposed solution is:
Can I just store “alex-genadinik” in the database (instead of MVC controllers) and fetch the vanity URL when look up the person. And then I could redirect to the elegant-looking domain?

Or will the redirection add a level of technical-awkwardness and inflexibility? Maybe I wouldn’t have to redirect at all. I mean I’d be looking things up in the db instead of the server. I think thats the only difference. Thoughts? 🙂

  • 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-05-19T16:18:53+00:00Added an answer on May 19, 2026 at 4:18 pm

    There’s nothing wrong with your proposed solution. In fact WordPress can be configured to do exactly this.

    I would implement it as follows (similar to WordPress):

    1. Have an .htaccess file catch all
      non-existant files that are
      requested, and rewrite to your
      router.php
    2. Have your router.php
      check the for this non-existant path
      in your db, against a list of pre-calculated vanity names.
    3. If it exists, display the
      relevant information, if not return
      a set of 404 headers to show that neither the file or the vanity name exist.

    URL Rewriting Guide

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

Sidebar

Related Questions

Recently I posted a question about the html helper dropdownlist and got it working
I recently posted my question see previous question and received a great working solution
I recently posted a question about Azure... is it really an OS? I understand
I recently posted a question about centering a page with CSS. I figured out
I recently posted this question about codes for a gift-card-like voucher that users can
I recently posted a question about getting last 3 results in table in the
I recently posted a question about optimizing the algorithm to compute the Levenshtein Distance,
Recently i posted a question about what the variable is of a file which
I've recently posted a general question about RAII at SO . However, I still
I recently posted a question about a WCF Restful web service that I am

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.