I understand that wordpress redirect traffic to index.php by .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

I understand that index.php operate request using var


So let’s say wordpress decide that the requested url is post “How to make bike”.
In url it would be like


And question is, How does wordpress show this page? Or send visitor to this page?

Does it use Header('Location:.....'); redirect?

Or does it use loading page from something like file_get_contents(); ?
Let’s assume that wordpress decides as I said it is post. Single post “How-To-Make-Bike”.

And what’s next? What happens next?

Read more here: How does wordpress show or send visitor to requested page?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: