Welcome, Guest. Please login or register.
Did you miss your activation email?
July 09, 2008, 09:35:26 am
42751 Posts in 8091 Topics by 17932 Members
Latest Member: codder
Turk-Php.Com Forum  |  Yardım Forumları  |  Genel Yardım  |  .htaccess tricks « previous next »
Pages: [1] Print
Author Topic: .htaccess tricks  (Read 145 times)
Caduceus
Yeni Kullanıcılar
*
Offline Offline

Posts: 3


View Profile
.htaccess tricks
« on: May 09, 2008, 10:24:49 am »

Merhaba. Benim sorum .htaccess kodlarıyla ilgili.

Code:
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

Code:
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
Pages: [1] Print 
« previous next »
Jump to: