Hello,
I have made the change from underscores to dashes [_ => -]
via external file.
thsi is the rule:
RewriteCond %{THE_REQUEST} (application|product) [NC]
RewriteRule ^([^_]+)_ /underscores.php [L]
and the external file:
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$pageURL = curPageURL();
$newURL = str_replace('_','-',$pageURL);
$RedirectionUrl = $newURL;
header("HTTP/1.1 301 Moved Permanently");
header("Location: $RedirectionUrl");
I have noticed a traffic drop. The sitemap has stayed as it was (with underscores) so spiders can find the new address.
Can you please tell me what did I do wrong? Or is this temporary?
thx,
spok