Hello , there was a question, how to deal with the fact that the site has both old and new links, made the cnc small, so the information is indexed by the old links, the new convenient links are not indexed, I'm going to promote the new links, what should I do? Advise how best to do, close the old links and re-address the new ones?

Update

/application bootstrap.php 

I have a route there

  Route::set('contacts', 'contacts') ->defaults(array( 'directory' => 'index', 'controller' => 'page', 'action' => 'contacts', )); 

How do I delete old links? I have a kohana. On the main page of the site I replaced the links with new ones.

    1 answer 1

    Make from old links 301 redirects to new ones. After a few months, you can remove the old

    Update

    In .htaccess in the root write:

     RewriteEngine On RewriteRule ^page/(.+) http://site.com/$1 [R=301, L] 
    • Updated the question - vlit
    • Apache web server? Write in .htaccess RewriteRule and do not touch the scripts. - Get
    • I made the right way to wrap up the site.ru / page / contacts link through the website.ru / contacts router. Right now you can go to the website via both links. but the indexed information on the old link. There are also other pages in which I removed page - vlit
    • Updated the answer - Get