Forum Moderators: coopster
The map is as follow:
From root
The index.html and a folder named display_hp with its main page named index.php, that offers a pagination without a clean URL
How could I make the rewrite working with the display_hp folder and its php index.
as is the status bar shows the correct clean address
but it results in page not found.
RewriteEngine on
RewriteRule (index.php)-([^-]+)-([^-]+)\.html$ $1.html?$2=$3 [N,QSA]
RewriteRule index\.html index.php
<? // goes on top of the PHP page
ob_start('post_process');
function post_process($buffer) {
return preg_replace("'index.php\?([^\"\']+)'e", "'index-'.implode('-', preg_split('/&¦=/', '\\1')).'.html'", $buffer);
}
?>
<edit> added comment </edit>