How does WordPress rewrite URLS using its PHP scripts

My Question is WordPress redirects url even in httpd. httpd doesn't support htaccess. And if developer tries to rewrite urls he have to do it in the httpd.conf file. But WordPress how rewrite urls in httpd? If anyone have idea please answer.

Topic php.ini url-rewriting php Wordpress

Category Web


WordPress can make redirects internally, by wp_redirect() function. It is php code, for it to function, no redirect in Apache (httpd) or Nginx web server is needed.

Also, WordPress has own rewrite API, accessible via add_rewrite_rule() and similar functions. This is also php code, which doesn't require any support from a web server.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.