|
|
|
Yazan
|
Konu: .htaccess tricks (Okunma Sayısı 44 defa)
|
Caduceus
Yeni Kullanıcılar
Offline
Mesaj Sayısı: 1
|
Merhaba. Benim sorum .htaccess kodlarıyla ilgili. ErrorDocument 400 /index.php?errcode=400 ErrorDocument 401 /index.php?errcode=401 ErrorDocument 403 /index.php?errcode=403 ErrorDocument 404 /index.php?errcode=404 ErrorDocument 405 /index.php?errcode=405 ErrorDocument 408 /index.php?errcode=408 ErrorDocument 410 /index.php?errcode=410 ErrorDocument 411 /index.php?errcode=411 ErrorDocument 412 /index.php?errcode=412 ErrorDocument 413 /index.php?errcode=413 ErrorDocument 414 /index.php?errcode=414 ErrorDocument 415 /index.php?errcode=415 ErrorDocument 500 /index.php?errcode=500 ErrorDocument 501 /index.php?errcode=501 ErrorDocument 502 /index.php?errcode=502 ErrorDocument 503 /index.php?errcode=503
bu kullanım yerine biraz daha değişik birşey yapmak mümkün olurmu? Mesela ErrorDocument ([0-9]{3}) /index.php?errcode=$1
gibi birşey? Örnek saçma oldu fakat ancak bu şekilde örnek verebiliyorum. Yapmak istediğim şey her hata numarası için ayrı bir satır yazmak yerine düzenli ifadelerden yararlanarak tüm hata kodları için tek bir satırlık kod kullanmak...
|
|
|
|
|
Logged
|
|
|
|
|
 |
|