https://www.icyphoenix.com/viewtopic.php?f=17&t=7028&p=48283#p48283
-----------------------------------
Gianni PB
Sun 14 Mar, 2010 10:59

Re: Convert Uppercase To Lowercase In Htaccess
-----------------------------------
Thanks MG, I found an other way.

I create this file that modify all files I want to redirect to.

[code linenumbers=false]	$path = "./";
	$dir_handle = @opendir($path) or die("Can't open $path");
	
	while ($file = readdir($dir_handle)) 
		if($file[0]!=".")
		{
			$fp = fopen($file, "w"); 
			if(!$fp)
				die ("Error"); 
			fwrite($fp, '<? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.pugliabaila.it/discografie/" . strtolower(substr($_SERVER[\'PHP_SELF\'], 13, -4)) . "/artista.php" ); ?> ');
			$fp = fclose($fp);
		}
	closedir($dir_handle);[/code]


