I have decided to change all my /dyanmic.php?UID=...
pages to /static/Name-From-DB
.
I have read that the best way to do redirection, SEO wise, is to implement a 301 .htacess redirection:
(http://www.tamingthebeast.net)- The right way - a htaccess 301 Redirect: A 301 redirect is the most efficient and spider/visitor friendly strategy around for web sites that are hosted on servers running Apache.
. Ben için yeniden yönlendirmeyi kullanmak için gereken binlerce sayfa var çünkü Ancak, htacess dosyasında binlerce girdileri var oldukça verimsiz gibi görünüyor:
redirect 301 /dynamid.php?UID=1 http://www.domain.com/static/Name-From-DB
redirect 301 /dynamid.php?UID=2 http://www.domain.com/static/Another-Name-From-DB
and so on...
Bunu yapmak için verimli bir şekilde UID göre 301 yönlendirme için başlık ayarı, PHP sayfası üzerinden olduğu gibi, bu nedenle görünüyor:
<?
Header( "HTTP/1.1 301 Moved Permanently" );
// Getting the page static name from the DB according to the UID
$result = mysql_query('SELECT Name FROM DB WHERE UID='$_GET["uid"]'');
$row=mysql_fetch_assoc($result);
// Redirect to the new page
Header( "Location: http://www.domain.com/static/" . $row[0] );
?>
Bu yöntemi ben bir yönlendirme yapmak için en iyi yoldur. Htaccess yoluyla yukarıda alıntı paragraf düşünüyor benim sayfalarında 'sıralamasında olumsuz şekilde etkileyecek eğer benim sorudur.
Teşekkürler!