Giriş

Tam Sürümü Görüntüle : dynamic url dan static url cevirmeler


alidemirtas
06-15-2010, 03:19 AM
Selamlar turkcem fazla iyi olmadigi icin ingilizce yaza. Eger google tercume programini kulanirsaniz tercume eder dediklerimi.

I have recently changed my website from dynamic url writing to friendly url writing using static url's. The problem; each page can be accessed from both the previous dynamic and current static url. This creates duplicate content and search engines penalize my website for it. As a result they do not index the pages of my website.

How can I setup a 301 redirect from the old dynamic url's to the current static url's?

is there a code which would automatically do this? I have included the htaccess code so you can get an idea of the .htaccess for the website.

I am aware that there is a code which i can put into the htaccess which automatically detects the new and old url's and then matches them together. Then places a 301 redirect from the dynamic url to the static url. I have no knowledge of coding. I kidnly request somebody helps me out.

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^****.com [NC]
RewriteRule ^(.*)$ http://www.****.com/$1 [L,R=301]

Options +FollowSymLinks
RewriteEngine on
# index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

Header set Cache-Control: "no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0"



Saygilarimla,
Ali

jockeя
06-15-2010, 11:18 AM
Sorun icin teşekkürler.Sana yardımcı olmak amacıyla ingilizce yazalım.

Can i see your website?ı guess to your websitesite using joomla .

But (ı guess) only htaccess experts know this situation.

You can send your msn adress to pm.I can give you ideas on msn.

Note:My English might be slightly distorted.Sorry for this :)

Saygılar

alidemirtas
06-15-2010, 01:01 PM
Selam

550 sayfa var, her sayfa icin 17 degisik dil var.

otomatik 301 yonlendirme lazim ama nasil yapacam bilmiyorum. bu miktarda sayfalari tek tek yapamam

Turkish Football Store - Turkish Football Store (http://www.turkishfootballstore.com)

burada tek sayfanin degisik url ornek leri

Turkish Football Store - Fenerbahce thuisshirt 2009/2010 (http://www.turkishfootballstore.com/lang-nl/product.php?id_product=515)
Turkish Football Store - Fenerbahce Home Shirt 2009/2010 (http://www.turkishfootballstore.com/fenerbahce/515-fenerbahce-thuisshirt-20092010.html)
Turkish Football Store - Fenerbahce thuisshirt 2009/2010 (http://www.turkishfootballstore.com/lang-nl/fenerbahce/515-fenerbahce-thuisshirt-20092010.html)


en dogrusi en altdakidir. cunku onun dil bilimi var (lang-nl) ve static url'dir

Saygilarimla