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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:28:29+00:00 2026-05-22T17:28:29+00:00

need an advice! here is a what I know about url shortening: usually new

  • 0

need an advice! here is a what I know about url shortening:
usually new records id is taken from Database and converted to something, let’s say base 36…

My situation:
I need to have a additional feature in URL shortening along with auto generated url I also need to be able process custom url.

Example: user enters : http://google.com and wants to have short url “domain/my-google”.

Problem:
things are fine at the first sight, but I am worried about scaling, as urls will be stored for 90 days and if database records will grow! I might face some performance issues!

So the question: What approach should I take while processing (creating/ serving) custom short urls?

  • 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-22T17:28:30+00:00Added an answer on May 22, 2026 at 5:28 pm

    This is a series of complications for you. With a little htaccess coding and a couple lines of PHP litterally a very tiny script for the over all use of parsing the URL and getting the pieces from it is the easy part. As for the short url id’s thats a whole nother can of worms. if you go stricly INT based and use numerics for your concept such as with an auto-incriment column for the ID’s to use as the short part of the URL things are easy, things will always be unique, and no serious worries about bashing ID’s where doubles and triples can come up.

    here is what I have used several times over
    .htaccess php how-to wordpress slugs And it always works well for me. Handling the rest of it though Ill leave to your construct and logic desired bare in mind your going to query a DB in the end run, so make sure your query gets sanitized as the trailing bit of the URL that would be the ID is based on user input.

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

Sidebar

Related Questions

Need some best practice advice here... Navigation based application. Root view is a UITableView
I think I have this working but I need advice. I'd like to know
I have 3 tables, I need advice on how to get data from them.
I need some advice on how to successfully update mutiple rows in my database
I've had trouble with people jumping to conclusions about what I need here, so
I know that about isometric map a lot of advice but I've read most
Although there are some threads on here about .net charting controls, I'm starting new
Here at work, we often need to find a string from the list of
Im in need of some advice here to understand the cleanest way to split
I need advice or directions on how to write an algorithm which will find

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.