I’ve build a plugin that will change all the links to cruft-free URLs, like /category/post-name/, /category/ etc.
Next step is to build 404.php so that it parses this, populates category_name and name values in the querystring and pass them all to /index.php.
Problem is, when I do header(Location: ..), it also changes the URL displayed in user browser. This is similar to ASP’s Response.Redirect.
Is there anything in PHP that is equivalent to ASP’s Server.Redirect() which does server transfer but does not “inform” user browser about that, so the URL is still the same?
- The topic ‘Building cruft-free WP urls. help with 404.php’ is closed to new replies.