|
1. Change all urls in links on all pages to a static form. This is usually done by modifying the database or by changing the script that generates those pages. PHP's preg_replace function often comes in handy for this.
2. Add mod_rewrite code to your httpd.conf, conf.d, or .htaccess file to internally rewrite those static urls, when requested from your server, into the dynamic form needed to invoke your page-generation script.
3. Add additional mod_rewrite code to detect direct client requests for dynamic urls and externally redirect those requests to the equivalent new static urls. A 301-Moved Permanently redirect is used to tell search engines to drop your old dynamic urls and use the new static ones, and also to redirect visitors who may come back to your site using outdated dynamic-url bookmarks.
|