Forum Moderators: phranque
1) Reject non-existent URLs containing uppercase characters (do not rewrite them to WordPress).
-or-
2) Modify WordPress (or find a plug-in) to redirect case-variant URLs to the proper URL
Jim
in .htaccess
RewriteCond %{REQUEST_URI} [A-Z]
RewriteRule ^(.*)$ lcaseurl\.php\?url=\/$1 [L,NC]
<?
// Check if URL is passed as parameter
if(strlen($_GET['url'])){
// Redirect to the lower-case version permanently
header("HTTP/1.0 301 Resource Moved Permanently");
header("Location: ".strtolower($_GET['url'])."");
exit();
}
// If not URL passed return a 404
header("HTTP/1.1 404 Not Found");
?>
But i dont have solution for this :
Good url :
http://www.example.com/toto/
http://www.example.com/toto/tata/
Bad url :
http://www.example.com/toto/20/ = 200
http://www.example.com/toto/tata/43/ = 200
I have problem only witch number :(