WordPress uses

    # 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]
</IfModule>

First question, what does mean one line of code below

RewriteRule ^index.php$ - [L]

Next thing is I don’t know how index.php handle with this…

So all url are redirected to index.php

If I type this url

website.pl/One-two-Five

.htaccess will redirect me to index.php

webiste.pl/index.php

But there is no information, I mean QUERY_STRING or something. It’s not something like

website.pl/index.php?data=555

but instead it is just

website.pl/index.php

And this is just index.php… So how index.php is making this possible? How does wordpress handle this? I can’t find anyone answers. What are wordpress mechanics for this?

Read more here: How does wordpress permalink system works?


Solution:

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: