Forum Moderators: coopster
Anyway, let me show you my notes on the work I've done
//PHP
ob_start('post_process');
#
function post_process($buffer) {
return preg_replace("'preview.php\?([^\"\']+)'e", "'preview-'.implode('-', preg_split('/&¦=/', '\\1')).'.php'", $buffer); }//.HTACCESS
RewriteEngine on
RewriteRule (preview.*)-([^-]+)-([^-]+)\.php$ $1.php?$2=$3 [N,QSA]
RewriteRule preview\.php preview.php//Old Url /preview.php?item_id=00000231
//New Url /preview-item_id=00000231.php (HTTP 404)//Put the ob_start code in the searchresults.php PHP script that generates the
//preview.php pages
The new URL is giving me a 404, so I'm looking at the code and wondering if I went wrong with my RewriteRule or with the post_process code.
Anyone remember this thread or recognize what I did wrong?
-Kwirl
I'm a newbie, but the more i contribute the less that title carries with me