I hate rewrite rules, and they hate me too.
So I used a PHP file.
<?php $sRadNewAdress='/wp'; if (isset($_SERVER['QUERY_STRING'])&&($_SERVER['QUERY_STRING']!='')) { $sQstring = $_SERVER['QUERY_STRING']; $aString = explode('/', $sQstring); $sNewAdress = $sRadNewAdress."/".$aString[1]."/".$aString[2]."/".strtolower ($aString[4]); } else { $sNewAdress = $sRadNewAdress; } header('Location: '.$sNewAdress); //Redirection HTTP header('HTTP/1.1 301 Moved Permanently'); header('Status: 301 Moved Permanently'); header('Content-Type: text/html; charset=UTF-8');
Latest posts by Fab (see all)
- For Whom the Bells Tolls: review - 4 August 2024
- Self Aware On Air Neon Sign - 8 June 2024
- La Commune : review - 30 March 2024
Thank you very much for this entry. Waiting for another one.