@ArBiTeR;
RewriteEngine on
RewriteRule ^search/(.[0-9A-Za-z-]+)\.html search.php?q=$1 [L]
RewriteRule sitemap-(.[0-9A-Za-z-]+).xml sitemap.php?sayfa=$1 [L]
RewriteRule ^(.[0-9A-Za-z-]+)/video/ video.php?vid=$1 [L]
RewriteEngine on
RewriteRule ^(.[0-9A-Za-z-]+)/video/ video.php?vid=$1 [L]
RewriteRule ^search/(.[0-9A-Za-z-]+)\.html search.php?q=$1 [L]
RewriteRule sitemap-(.[0-9A-Za-z-]+).xml sitemap.php?sayfa=$1 [L]
olarak değiştirdim fakat arama sorguları halen hem video.php'ye hemde search.php'ye gidiyor.
Örnek URL :
http://www.domain.com/search/video_adi.html
bunu video.php 'ye de gönderiyor..
Çok teşekkür ediyorum yardımlarınız için fakat halen;
http://www.domain.com/search/test.html olarak girdiğimde url'yi hem video.php'ye hemde search.php'ye post ediyor
$1 değerini satırlardan birinde $2 gibi yapabilmek mümkün mü?
RewriteRule ^(.[0-9A-Za-z-]+)/video/ video.php?vid=$1 [L]
yerine
RewriteRule ^(.[0-9A-Za-z-]+)/(.[0-9A-Za-z-]+)/video/ video.php?vid=$2 [L]
deniyorum fakat bu sefer de 404 sayfa bulunamadı hatası alıyorum.
Arama seo yapısı :
http://domain.com/search/video-baslik.html
Video seo yapısı :
http://domain.com/videoid/video/video-baslik.html
Teşekkür ederim.