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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:14:39+00:00 2026-05-27T00:14:39+00:00

I am working with PHP5.3.6 on Windows 2008R2. In WordPress, I can set all

  • 0

I am working with PHP5.3.6 on Windows 2008R2.

In WordPress, I can set all kinds of friendly URLs which ultimately route to one PHP page. From the outside, it looks like many pages, but is only one.

In the web.config file (or .htaccess) file, there is only one instruction as opposed to having one entry per page/article.

This means that somewhere PHP is looking at the URL, comparing it to the database (where the article titles exist) and then routing transparently to the page.

All of this is transparent to the end user.

How is this accomplished in a non wordpress PHP site?

  • 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-27T00:14:40+00:00Added an answer on May 27, 2026 at 12:14 am

    Here’s a related answer that touches on how to do that. In brief, you’ll want to check the $_SERVER['REQUEST_URI'] and just parse that.

    Here’s a simple example of parsing the request (MVC routers are usually configurable, and can route and match for many different URI structures):

    If your format is something like news/article-slig you can do this (example code, there are less rigid ways to do this):

    list($section, $slug) = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
    

    At this point your PHP script knows how to interpret the request. If this were a full blown MVC application, the router would load the matching controller and pass the request data to it. If you’re just doing a simple single page script, loading some data, then your DB calls would follow.

    If the request is invalid, then a simple header() call can notify the browser:

    header('HTTP/1.0 404 Not Found');
    

    And any data output would be the content of your 404 page.

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

Sidebar

Related Questions

My site was working fine until I followed this guide, http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-9.10 to set up
I'm using WAMP on windows, which installs PHP, Apache and MySQL. I'm now working
Here's one that's got me stumped. Working in PHP5. I am building a store
Environment info: *Windows Vista *PHP 5.2.9-2 I'm working on a project. Let's say it's
Working with dates in ruby and rails on windows, I'm having problems with pre-epoch
Working with python interactively, it's sometimes necessary to display a result which is some
I'm working with a CSV file and PHP5 however I'm not quite understanding what
I've been working in PHP5 for a couple of years now and have developed
Using PHP5.3.3, I have 2 classes, called SinglePDO and Manager , both working, but
Windows 2008 R2 server running PHP 5.3. I have URL Rewrite for IIS working

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.