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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:51:48+00:00 2026-05-30T00:51:48+00:00

I have a revision website, it has stuff for multiple school subjects. I am

  • 0

I have a revision website, it has stuff for multiple school subjects. I am starting to develop subject pages, these will have stuff only for that subject. e.g. a physics page

Anyway, what I am trying to do is let people type in www.myWebsite.com/history or www.myWebsite.com/ict – or what ever. And them get redirected to the appropriate page.

From that it sounds really simple, I would just put a file called history.php in my public_html home directory, right?

But my home directory is super organised, with everything in nice sub folders. I want to but all the subject pages in a sub folder called ‘subjects’ (imaginative name :p ).

How can I put these pages in the sub folder, yet still let the user access them from the URL examples above?

  • 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-30T00:51:50+00:00Added an answer on May 30, 2026 at 12:51 am

    A great way to do this is to use a Front Controller. You can re-route all requests to one file (typically index.php) via htaccess and then from there grab the URI (the /itc, /history etc.) and use it to direct the request to the appropriate script.

    Check this out, should get you started.
    http://www.technotaste.com/blog/simple-php-front-controller/

    Once you figure that out, you will want to compare the differences between dynamic and static invocation. Cheers.

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

Sidebar

Related Questions

I have a revision that has been committed to SVN trunk which I would
I have a project that has a revision number of 3960. But unfortunately it
I have website build in php . I like the revision control system used
I have a solution with multiple projects and a website. On each project I
At work, development doesn't have revision control. By this I mean that we are
I have this query: SELECT page.id, revision.title, revision.number FROM page INNER JOIN revision ON
I have a git repo, and a revision code I want it to get
I am continuing with my exam revision. I have come across the usage of
I'm using sIFR 3 (beta revision 436). I have a menu 40px high. I
I'm interested in knowing how revision-control systems do merging. Suppose you have a file

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.