www.cakal.net Forumları YabadabaDuuuee  

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

CevaplaCevapla
 
Konu Seçenekleri Görünüm Şekli
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
Eski 06-15-2010, 11:18 AM   #2
jockeя
Administrator
 
jockeя 'in Avatari
 
Kayit Tarihi: Aug 2005
Mesajlari: 8,103
Teşekkür Etme: 19
Teşekkür Edilme: 155
Teşekkür Aldığı Konusu: 28
Üye No: 1
Rep Power: 70000
Rep Puanı : 434913
Rep Derecesi : jockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond reputejockeя has a reputation beyond repute
Cinsiyet :
Ünvan : Admin
Belirlenen

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
jockeя Ofline   Alinti Yaparak Cevapla
Eski 06-15-2010, 01:01 PM   #3
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
Belirlenen

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

burada tek sayfanin degisik url ornek leri

Turkish Football Store - Fenerbahce thuisshirt 2009/2010
Turkish Football Store - Fenerbahce Home Shirt 2009/2010
Turkish Football Store - Fenerbahce thuisshirt 2009/2010


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

Saygilarimla
alidemirtas Ofline   Alinti Yaparak Cevapla
CevaplaCevapla


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 03:24 AM.

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