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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:50:02+00:00 2026-05-27T09:50:02+00:00

I am currently whipping up a very basic CMS for a personal project of

  • 0

I am currently whipping up a very basic CMS for a personal project of mine. It is as much for my own education as anything. One question I have is how do I achieve url’s / permalinks without file extentions. I understand using get variables to pull data from the DB but how do you convert this to something like http://www.url.com/posttitle instead of something like http://www.url.com/?posttitle=’blablabla.

Also on a slightly different topic can anyone point me in the direction of an EASY to use framework for developing sites that deal with memberships and member listings eg craigslist.

I currently develop within wordpress and am quite capable but am less familiar with OOPHP and custom CMS development from a base level.

Thanks in advance for any help or suggestions.

  • 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-27T09:50:02+00:00Added an answer on May 27, 2026 at 9:50 am

    You’d use a .htaccess file to pass all requests to your front controller (which is usually just an index.php script) and then that script matches the incoming request to a record in your database.

    For example, if you had a database table called pages with four columns: id, title, slug and content, the following would be a simple implementation…

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.+)$ index.php/$1 [NC,L]
    

    This tells Apache to take all requests that aren’t a file or a direction and send them to index.php.

    Your index.php could then look as follows:

    <?php
    // Take request URI
    // Would be something like 'your-slug'
    $request = trim($_SERVER['REQUEST_URI'], '/');
    
    // Set up database connection and attempt to match slug
    $sql = "SELECT * FROM pages WHERE slug = ? LIMIT 1";
    $smt = $db->prepare($sql);
    $smt->execute(array($request));
    
    $page = $smt->fetchObject();
    
    if (! $page) {
        // Page was not found matching slug
        header('HTTP/1.1 404 Not Found');
        exit;
    }
    
    // Display matching page in a template
    

    From here, you can then build upon it.

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

Sidebar

Related Questions

Currently we have a project with a standard subversion repository layout of: ./trunk ./branches
Currently, I have a log file of messages in one table in a MySQL
Currently, the only information I have is a one-line error message in the browser's
Currently I have multiple resources in a project that can only be accessed from
Currently, I don't really have a good method of debugging JavaScript in Internet Explorer and
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
Currently, I am writing up a bit of a product-based CMS as my first
Currently, I have: <html> <div class=yes1><span><img src=img></span></div> </html> <script> var x = ='yes1' var
currently we have a column with only integer values declared as NUMBER. At the
Currently my query is very heavy, the table (table A) I need to update

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.