Forum Moderators: coopster

Message Too Old, No Replies

Wordpress URL's made friendly via code or htaccess?

         

AffiliateDreamer

7:04 pm on Dec 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi,

In wordpress I set the permantlink to a 'seo friendly url' so my URLS look like: www.example.com/blog/some-post/

My .htaccess file is completely empty, so how is wordpress doign the rewriting?

lammert

11:41 pm on Dec 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My .htaccess file is completely empty

No it is not :) Wordpress adds a line which maps all 404 pages to index.php. A request for www.example.com/blog/some-post/ generates a 404 Not found and the webserver executes Wordpress index.php to display an error message. When index.php is invoked, Wordpress interprets the URL and generates the requested page with a new 200 header.