www.cakal.net Forumları YabadabaDuuuee  

Geri Git   www.cakal.net Forumları YabadabaDuuuee > Programlar & İnternet > Webmaster > Sorularınız

 
 
Konu Araçları Görünüm Modları
Old 06-15-2010, 03:19 AM   #1
alidemirtas
Yeni Üye
 
Üyelik Tarihi: Jun 2010
Yaş: 38
Mesajlar: 3
Teşekkür Etme: 0
Thanked 0 Times in 0 Posts
Üye No: 101371
İtibar Gücü: 0
Rep Puanı : 10
Rep Derecesi : alidemirtas is on a distinguished road
Cinsiyet : Erkek
Unhappy dynamic url dan static url cevirmeler

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
alidemirtas çevrimdışı   Alıntı ile Cevapla
 


Konuyu Görüntüleyen Aktif Kullanıcılar: 1 (0 üye ve 1 misafir)
 

Yayınlama Kuralları
Yeni konu açamazsınız
Cevap gönderemezsiniz
Eklenti ekleyemezsiniz
Mesajlarınızı düzenleyemezsiniz

Kodlama is Açık
Smilies are Açık
[IMG] code is Açık
HTML code is Kapalı


Forum saati GMT +3 olarak ayarlanmıştır. Şu an saat: 09:18 AM

Yazılım: vBulletin® - Sürüm: 3.8.11   Copyright ©2000 - 2025, vBulletin Solutions, Inc.