Forum Moderators: phranque

Message Too Old, No Replies

wordpress rewrite

         

Sandro87

12:45 am on Mar 16, 2010 (gmt 0)

10+ Year Member



hello,
how exactly does wordpress's internal rewrite work?
It doesn't uses a .htaccess file but it can still show the right content, does the code analyze the URI code?

jdMorgan

3:43 pm on Mar 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In simplified terms, it looks at the requested URI (previously stored by Apache into a server variable as part of the initial incoming HTTP request-handling), and then opens the WP database, reads in, and outputs the desired content associated with that URI.

So, it's not a "rewrite" per-se, but rather, a database file read.

Jim