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)
- Eki-Libre: review - 22 February 2022
- The Culture Map, a book review - 9 February 2022
- Book reviews as a service - 15 January 2022
Thank you very much for this entry. Waiting for another one.