Qwilm!2

Vuelva a escribir urls separado por _ y reemplazalo por - para SEO

Si su sitio esta usando los url de esta manera:

  1. http://domain.com/apache_htaccess/apache_htaccess_article_howto.html
  2. http://domain.com/the_best_apache_htaccess_article.html

Y usted se cambió el urls para ser a SEO más amistoso substituyendo el ( _ ) con ( - ).

  1. http://domain.com/apache-htaccess/apache-htaccess-article-howto.html
  2. http://domain.com/the-best-apache-htaccess-article.html

Solo en su archivo .hactess deberia cambiar estos codigos.

  1. Options +FollowSymLinks
  2. RewriteEngine On
  3. RewriteBase /
  4.  
  5. RewriteRule !\.(html|php)$ - [S=5]
  6. RewriteRule ^([^_]*)_([^_]*)_([^_]*)_([^_]*)_(.*)\.html$ http://domain.com/$1-$2-$3-$4-$5.html [R=301,L]
  7. RewriteRule ^([^_]*)_([^_]*)_([^_]*)_(.*)\.html$ http://domain.com/$1-$2-$3-$4.html [R=301,L]
  8. RewriteRule ^([^_]*)_([^_]*)_(.*)\.html$ http://domain.com/$1-$2-$3.html [R=301,L]
  9. RewriteRule ^([^_]*)_(.*)\.html$ http://domain.com/$1-$2.html [R=301,L]

[ 0C ] [ Abril 17, 2007 ] [ Google - Lenguaje PHP - webmaster ]

Posts Relacionados

Leave a Reply