Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Search engine results I run this website www.chalopicnic.com and My development team recently changed the url structure to include hyphen which originally had underscore. This is resulting in NOT

@Samaraweera270

Posted in: #GoogleSearch #GoogleSearchConsole

I run this website chalopicnic.com and My development team recently changed the url structure to include hyphen which originally had underscore. This is resulting in NOT FOUND in search engines.

For example when "jet skiing in Mumbai" is searched on Google, the 5th result is
chalopicnic.com/more_info.php?tid=373
The change done to the above link is the hyphen
chalopicnic.com/more-info.php?tid=373
Is there a way to have the renamed link auto redirected to new link so that I don't loose ranking on Google.

My dev team is unable to find an elegant solution and hence I am seeking help on this.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

Most online web servers will support rewriting of the URL. In Apache this can be done by using a htaccess file and using something like:

RewriteRule (.*)_(.*) - [N]


Your find many questions and answers on Stack Overflow regarding converting and rewriting the URL from underscores to hyphens. It's worth mentioning that your development team should of never changed the URL structure before setting up the redirects in advance, by doing so you run the risk of Google dropping the old pages, which means you may lose the authority and rankings gained on the old pages.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme