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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:28:24+00:00 2026-06-16T17:28:24+00:00

How would I display dynamic content, say profile pages with the url syntax mysite.com/users/user1

  • 0

How would I display dynamic content, say profile pages with the url syntax

mysite.com/users/user1
mysite.com/users/user2
mysite.com/users/user3

Without having a different page or directory for every user. I’m hoping there is a way to just have something like an index.php file in the users directory and have it display appropriate user content based on the user1, user2, user3 part of the url.

I know this is common but I’m not sure how to do it or what ever it would be called to google it?

  • 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-16T17:28:26+00:00Added an answer on June 16, 2026 at 5:28 pm

    If your running apache, you may want to look into mod_rewrite rules for your .htaccess file.

    In the following example, I redirect anything that is pointing to /users/user* to a file in the root of the site called users.php. You notice the ([^/\.]+). This is a “catch-all” reg-ex that will allow me to create a variable for my query string (ex: ?id=$1).

    <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule ^users/user([^/\.]+) users.php?id=$1 [L]
    </IfModule>
    

    Then in my users.php i can retrieve the variable as:

    $id = $_GET['id']

    This will allow me to catch and handle all user URLs with only 1 file.

    Note: This is only an example. It will have to be built upon but it could be a good starting point for you

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

Sidebar

Related Questions

How would one display any add content from a dynamic aspx page? Currently I
I would like to use AJAX to display dynamic content via my wordpress plugin.
I have a label which would display strings from 0 ft to say 999
I would like to create a jQuery menu with dynamic content using the jQuery
I have one table which display data as from Dynamic Content in 1 column.
I have an application that uses jQuery tabs to display different dynamic content for
i would like to output dynamic generated html content instead of the translatable message
I am using dynamic content (WordPress) and would like to center a logo in
I want to make an application that would display a message when a user
I want to create application which would display spatial data on Map. I'm thinking

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.