Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

traffic drop after underscore to dashes change

traffic drop after underscore to dashes change

8:32 am on May 4, 2011 (gmt 0)

5+ Year Member

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") {
} else {
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?

12:32 pm on May 4, 2011 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

It is temporary. Make sure that no request can ever result in a multiple-step redirection chain.

Update your sitemap as soon as possible. The sitemap should include valid URLs, not URLs that redirect.
3:00 pm on May 4, 2011 (gmt 0)

5+ Year Member

thx g1smd,
question: if I change sitemap and all links on page, the spiders will see only new pages and will not connect new links with old links (underscores vs dashes). Or the steps are change urls and sitemaps, keep web as it was?
thank you


Featured Threads

Hot Threads This Week

Hot Threads This Month