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

  • Home
  • SEARCH
  • 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 3270904
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:40:51+00:00 2026-05-17T18:40:51+00:00

I am creating a webpage with PHP/MySQL, and each page is in its own

  • 0

I am creating a webpage with PHP/MySQL, and each page is in its own .php file.

How should I organize the addressbar, when changing the viewing page?

I have thought of two different ways to solve this:

1) www.mywebpage.com/?page=REFERENCES+pageid=GUID_TO_USE_FOR_DB_LOOKUP

2) www.mywebpage.com/references.php?GUID_TO_USE_FOR_DB_LOOKUP

Which should I choose? Are there other ways to do this?

Edit: When the user clicks a link to another page, I want to redirect the user to the corresponding .php file. The question is how to show this in the addressbar in the web browser.

With the GUID_TO_USE_FOR_DB_LOOKUP, I want to pass parameter to the .php file

  • 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-17T18:40:51+00:00Added an answer on May 17, 2026 at 6:40 pm

    Another way to do it:

    www.mywebpage.com/references/GUID.html

    You can use mod_rewrite to use URLs like this and have them mapped to “references.php?GUID=xyz” internally.

    However, all solutions are fine and will work the same way (display the page), the advantage of the above is just that the URL is more “readable” as well as better for search engine optimization as the URL-“path” is parsed by search engines (other than using parameters).

    Search for “mod_rewrite SEO” to find out more about this topic, e.g.:
    http://www.htmlist.com/how-to/a-simplemod_rewrite-tutorial/

    A couple of questions to ask:
    Why do you care about the URL? Should it be human readable? Do you care about SEO? Do you like to use a “framework” with a single point of entry (which could work like your first example)? Do you want to “hide” your actual filenames from your users? etc. etc.

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

Sidebar

Related Questions

I'm creating a dictionary database using php and MySQL. The user can search for
I'm creating a FORM with PHP for an intranet webpage. Another PHP script is
When creating a web application, and lets say you have a User object denoting
While creating a file synchronization program in C# I tried to make a method
I'm after creating a webpage that includes a blog section and it currently displays
I am creating a table to display on a web page and that table
I want to create several images with PHP on my webpage. Is there a
I'm creating a sample website using xhtml with javascript support. Also using php for
I have a MySQL Database of more or less 100 teachers, their names, and
1) i have a server hosting web page ( intranet ) . Intent is

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.