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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:55:14+00:00 2026-06-11T03:55:14+00:00

Just a quick question, I am making user profiles for my website and would

  • 0

Just a quick question,

I am making user profiles for my website and would like to include vanity URLS, but the page has a lot of separate information which gets loaded, e.g Followers tab, uploads tab, and each of these have some kind of setting that can be applied like ASC DESC, New/old results etc. What would be the best way to have vanity urls but keep the functionality i require?

http://www.site.com/user.php?id=1&content=Followers&Order=(Different settings for each result)

But i am wondering if it would be better if i should just name the content differently if someone wanted to search for followers + a limitation, for example

http://www.site.com/user.php?id=1&content=NewestFollowers,

rather than

http://www.site.com/user.php?id=1&content=Followers&Order=Newest

  • 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-11T03:55:15+00:00Added an answer on June 11, 2026 at 3:55 am

    You typically want to construct the vanity URL so that it directly maps to query string parameters to the ugly URL. So if you have:

    http://www.site.com/user.php?id=1&content=Followers&Order=Newest
    

    You can make your vanity URL look like:

    http://www.site.com/u/1/Followers/Newest/
    

    But the /1/ bit is a little ugly, and not exactly vanity, so if you can pass a username through that query string parameter, it would look better:

    http://www.site.com/u/jonlin/Followers/Newest/
    

    Then you’d just put some mod_rewrite rules in an htaccess file in your document root that internally rewrites the vanity URL back to the ugly one:

    RewriteEngine On
    RewriteRule ^u/([^/]+)/([^/]+)/([^/]+)/?$ /user.php?id=$1&content=$2&Order=$3 [L,QSA]
    RewriteRule ^u/([^/]+)/([^/]+)/?$ /user.php?id=$1&content=$2 [L,QSA]
    RewriteRule ^u/([^/]+)/?$ /user.php?id=$1 [L,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

just a quick question, was trying different ways to accomplish this, but ended with
Just a quick question. Say a call a method like so mysql_pconnect(server,tator_w,password) or die(Unable
Just a quick question. I'm making a web application where C++ communicates with a
Just a quick question. I am trying to help a friend with his website.
just a quick question about the mvc JqueryUI framework, i have a _layout.cshtml page
I just have a quick question to see what the best practice would be
Hey guy's just a quick question. Im making a sortable, drag and drop system
Just a quick question but is it possible to open a helpProvider? All I
just a quick question, if I have a matrix has n rows and m
Just a quick question, how do I get pypy to recognize third pary modules

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.