Google'da friendly url olarak aratırsanız, karşınıza gelecek sonuçlar size oldukça yardımcı olacaktır.
http://www.google.com.tr/search?hl=en&q=friendly+url
Php dinamik bir sayfayı işaret etiğine göre. Demek salt .php yi .html yapmak işe yaramaz.Kullanılan fonksiyonlara göre rule'ları kendiniz tanımlamanız gerekir. Daha ayrıntılı tanımlamalar ile de php dosya adlarını çok daha anlamlı hale getirebilirsiniz. Tabii burada dil karekter kodlamalarına dikkat ederek kurallar yaratmalısınız.
Friendly URL hali:
http://www.divxplanet.com/sub/m/8246/Ice-Age-The-Meltdown.html
Orjinal hali:
http://www.divxplanet.com/altyazi_.php?id=36636
Friendly URL hali:
http://forum.divxplanet.com/Sansuerlue-bloklu-sitelere-eriim-t53178.html
Orjinal hali:
http://forum.divxplanet.com/index.php?showtopic=53178
IPB için olması gereken .htaccess dosyasınıda kuralları görmeniz açısından aşağıya paste edeyim.
Bizim kullandığımız yöntem sadece Apache sunucular da çalışan, mod_rewrite modülünü aktif edilmesi gereken yöntemdir. Verdiğim google linkin de diğer yöntemleri de görebilirsiniz.
Kod:
# Rules
#
# Gallery
RewriteRule ^gallery\.html(.*)$ index.php?act=module&module=gallery$1
# DO THE TOPIC URLS
RewriteRule ^(.*)-t([0-9][0-9]*)-s([0-9][0-9]*)\.html(.*)$ index.php?showtopic=$2&st=$3
RewriteRule ^(.*)-t([0-9][0-9]*)\.html(.*)$ index.php?showtopic=$2$3
# DO THE FORUM URLS
RewriteRule ^(.*)-new-topic-f([0-9]*)\.html(.*)$ index.php?act=Post&CODE=00&f=$2$3
RewriteRule ^(.*)-new-poll-f([0-9]*)\.html(.*)$ index.php?act=Post&CODE=10&f=$2$3
RewriteRule ^(.*)-f([0-9][0-9]*)\.html(.*)$ index.php?showforum=$2$3
# DO EMAIL AND PM URLS
RewriteRule ^(.*)-a-private-message-m([0-9]*)\.html(.*)$ index.php?act=Msg&CODE=4&MID=$2$3
RewriteRule ^(.*)-an-email-m([0-9]*)\.html(.*)$ index.php?act=Mail&CODE=00&MID=$2$3
# DO THE PROFILE URLS
RewriteRule ^(.*)-m([0-9]*)\.html(.*)$ index.php?showuser=$2$3
# Login/Logout
RewriteRule ^logout\.html(.*)$ index.php?act=Login&CODE=03$1
RewriteRule ^login\.html(.*)$ index.php?act=Login&CODE=00$1
RewriteRule ^register\.html(.*)$ index.php?act=Reg&CODE=00$1
# STATS AND LEGENDS
RewriteRule ^the-moderating-team\.html(.*)$ index.php?act=Stats&CODE=leaders$1
RewriteRule ^todays-top-10-posters\.html(.*)$ index.php?act=Stats$1
# MEMBERS LIST
RewriteRule ^member-list\.html(.*)$ index.php?act=Members$1
# ONLINE LIST
RewriteRule ^online-list\.html(.*)$ index.php?act=Online$1
# HELP
RewriteRule ^(.*)-h([0-9]*)\.html(.*)$ index.php?act=help&CODE=01&HID=$2$3
RewriteRule ^(.*)help\.html(.*)$ index.php?act=Help$2
# USER CP
RewriteRule ^my-controls\.html(.*)$ index.php?act=UserCP&CODE=00$1
# MESSENGER
RewriteRule ^compose-new-message\.html(.*)$ index.php?act=Msg&CODE=04$1
RewriteRule ^inbox\.html(.*)$ index.php?act=Msg&CODE=01&VID=in$1
RewriteRule ^sent-items\.html(.*)$ index.php?act=Msg&CODE=01&VID=sent$1
RewriteRule ^saved-pms\.html(.*)$ index.php?act=Msg&CODE=20$1
RewriteRule ^empty-pm-folders\.html(.*)$ index.php?act=Msg&CODE=delete$1
RewriteRule ^edit-storage-folders\.html(.*)$ index.php?act=Msg&CODE=07$1
RewriteRule ^pm-buddies\.html(.*)$ index.php?act=Msg&CODE=02$1
RewriteRule ^archive-messages\.html(.*)$ index.php?act=Msg&CODE=14$1
RewriteRule ^message-tracker\.html(.*)$ index.php?act=Msg&CODE=30$1
RewriteRule ^new-messages\.html(.*)$ index.php?act=Msg&CODE=01$1
# SUBSCRIPTIONS
RewriteRule ^view-topic-subscriptions\.html(.*)$ index.php?act=UserCP&CODE=26$1
RewriteRule ^view-forum-subscriptions\.html(.*)$ index.php?act=UserCP&CODE=50$1
# PERSONAL PROFILE
RewriteRule ^edit-profile-info\.html(.*)$ index.php?act=UserCP&CODE=01$1
RewriteRule ^edit-signature\.html(.*)$ index.php?act=UserCP&CODE=22$1
RewriteRule ^edit-avatar-settings\.html(.*)$ index.php?act=UserCP&CODE=24$1
RewriteRule ^change-personal-photo\.html(.*)$ index.php?act=UserCP&CODE=photo$1
# OPTIONS
RewriteRule ^manage-your-attachments\.html(.*)$ index.php?act=UserCP&CODE=attach$1
RewriteRule ^manage-ignored-users\.html(.*)$ index.php?act=UserCP&CODE=ignore$1
RewriteRule ^email-settings\.html(.*)$ index.php?act=UserCP&CODE=02$1
RewriteRule ^board-settings\.html(.*)$ index.php?act=UserCP&CODE=04$1
RewriteRule ^change-email-address\.html(.*)$ index.php?act=UserCP&CODE=08$1
RewriteRule ^change-password\.html(.*)$ index.php?act=UserCP&CODE=28$1
# MODERATOR TOOLS
RewriteRule ^ip-tool\.html(.*)$ index.php?act=UserCP&CODE=iptool$1
RewriteRule ^member-tool\.html(.*)$ index.php?act=UserCP&CODE=memtool$1
RewriteRule ^manage-anoucements\.html(.*)$ index.php?act=UserCP&CODE=announce_start$1
# GET NEW POSTS
RewriteRule ^get-new-posts\.html(.*)$ index.php?act=Search&CODE=getnew$1
# DO THE FORUM INDEX
RewriteRule ^forums\.html(.*)$ index.php?act=idx$3