Apache » Apache Soru ve Cevaplar

.htaccess problemi

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkçe » Site, Sunucu Sorunlarınız ve Çözümleri » Apache » Apache Soru ve Cevaplar
 
Reklam Alın!
Günlük 5k tekil ve üzeri sitelerinize reklam!
Fixreklam
Extreme yoksa Sayyac var!
Ücretsiz İstatistik Servisi
Sayyac.com
Firma tanıtımı!
Firmanızın reklamını hemen yapın!
Reklamlar

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09.03.08, 01:11
Sempron
 
Join Date: Feb 2008
Posts: 16
Rep Power: 0
webyazilim is on a distinguished road
Unhappy .htaccess problemi

.htaccess ile yalancı url'ler tanımlarken root kısımında bulunan dosyaların isimleri uzantısız kullanıldığında hata sayfasına yönlendiriyor. Apache ayarlarına özgü bir sorun olmalı çünkü aynı htaccess başka yerde hata vermiyor.

Code:
RewriteEngine On 
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?id1=$1

php_value memory_limit "64M"
Bu htaccess domain.com/footer gibi bir url yazılınca host root'ta footer.php varsa 404 sayfasına yönlendiriyor. Ama rootta olmayan bir url yazılırsa örneğin domain.com/armut gibisorun olmuyor URL rewrite çalışıyor.

Bunun önüne nasıl geçerim ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 10.03.08, 20:51
Onursal's Avatar
fshbcr
 
Join Date: Jun 2007
Location: Çorlu
Age: 28
Posts: 638
Rep Power: 1092
Onursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond repute
Send a message via MSN to Onursal
RewriteRule ^(.*)/?$ index.php?id1=$1

işe yararmı acaba
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 11.03.08, 00:10
Sempron
 
Join Date: Feb 2008
Posts: 16
Rep Power: 0
webyazilim is on a distinguished road
GET yerine request_uri ile ilk include edilen php de adresi bölerek çözdüm. Şimdilik iyi iş görüyor.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
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 On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess %20 'yi yönlendirme MeZaR Apache Soru ve Cevaplar 2 29.01.08 00:53
Htaccess İzinleri iBiL WHM Makaleler 3 25.01.08 21:35
Update sonrası .htaccess çalışmıyor Ptah Apache Soru ve Cevaplar 2 21.11.07 01:21
Guide to .htaccess CaLViN Site,Server Administration 0 11.11.07 02:37
.htaccess ayarını etkinleştirmek tespara Genel Makaleler 0 25.06.07 22:01


Sign up for PayPal and start accepting credit card payments instantly.

Navigasyon
Menü