www.cakal.net Forumları YabadabaDuuuee  

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

 
 
Konu Seçenekleri Görünüm Şekli
Prev önceki Mesaj   Sonraki Mesaj Next
Eski 06-15-2010, 03:19 AM   #1
alidemirtas
Yeni Üye
 
Kayit Tarihi: Jun 2010
Yaş: 37
Mesajlari: 3
Teşekkür Etme: 0
Teşekkür Edilme: 0
Teşekkür Aldığı Konusu: 0
Üye No: 101371
Rep Power: 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 Ofline   Alinti Yaparak Cevapla
 


Bu Konudaki Online üyeler: 1 (Üye Sayisi : 0 Ziyaretçi Sayisi : 1)
 

Mesaj kurallari
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Acik
[IMG] kodlarAcik
HTML kodlari Kapali


Saat Dururmu GMT +3. Şimdiki Zaman 05:17 PM.

Powered by vBulletin Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.