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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:44:31+00:00 2026-05-18T09:44:31+00:00

WordPress uses friendly seo url without using htaccess. Can any explain this to me

  • 0

WordPress uses friendly seo url without using htaccess.

Can any explain this to me please how they do it.

The only way i can think of is to do something like this.

domain.com/index.php/nnn/mmmm/

But wordpress does not use index.php

I know they are not using htaccess.

Please let me know.

Thank you.

  • 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-18T09:44:31+00:00Added an answer on May 18, 2026 at 9:44 am

    WordPress actually has a single .htaccess file that they don’t need to change which redirects all requests to index.php

    index.php then looks at the permalinks rules and runs a few database queries to determine which page to send you.

    So for instance if the permalink rule is %postdate%/%postname% (may not be the actual WordPress permalink variables. I haven’t been using WordPress for too long) then it would just use regular expressions (or combinations of substr() and strpos()) to put %postdate% and %postname% into variables. Next it runs a simple database query for any item matching that date and that name. If nothing is found, redirect to search. If you find more than one, list them all (like a category page). If you find one and only one, send that page.

    As far as actually “sending” the page, that’s just a matter of settings certain variables (such as $the_post['content']) and then include()‘ing the proper theme file.

    include()‘ing the theme file is a simple if() statement.

    if(file_exists("wp-content/themes/<your_theme>/$the_post['type'].php")){
        include("wp-content/themes/<your_theme>/$the_post['type'].php");
    } else {
        include("wp-content/themes/<your_theme>/index.php");
    }
    

    Mind you these aren’t the exact variable names or the exact functions as they occur. This is just a very simplified version to give the general idea of how these systems work.

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

Sidebar

Related Questions

No related questions found

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.