PayPal - Online ödeme yapmanın daha güvenli ve kolay yolu!
Yeni Cevap 
 
Konuyu Değerlendir
  • 0 Oy - 0 Ortalama
  • 1
  • 2
  • 3
  • 4
  • 5
Ionics Isapi Rewrite Filter, URL Rewriter for IIS
Yazar Mesaj
rescued Çevrimdışı
Senior Member
****

Mesajlar: 181
Katılım: Aug 2008
Rep Puanı: 1
Mesaj: #11
RE: Ionics Isapi Rewrite Filter, URL Rewriter for IIS
Aşağıdaki httacess nasıl modifiye edebilirim






RewriteEngine on

RewriteBase /

# [NC] --> Case Insensitive URL #
# #
# It means that both UpperCase and LowerCase URLs will be allowed. #
## Index Page

RewriteRule ^index(\.html)?$ index.php [L,NC]

## Users and Groups

RewriteRule ^Profile-([0-9]{1,15})-(.*)(\.html)?$ profile.php?lookup=$1 [L,NC]
RewriteRule ^Group-([0-9]{1,15})-(.*)(\.html)?$ profile.php?group_id=$1 [L,NC]

## Custom Pages

RewriteRule ^Page-([0-9]+)-rowstart-([0-9]+)-(.*)(\.html)?$ viewpage.php?page_id=$1&rowstart=$2 [L,NC]
RewriteRule ^Page-([0-9]+)-(.*)(\.html)?$ viewpage.php?page_id=$1 [L,NC]

## News and News Cats

RewriteRule ^News(\.html)?$ news.php [L,NC]
RewriteRule ^News-rowstart-([0-9]{1,15})(\.html)?$ news.php?rowstart=$1 [L,NC]
RewriteRule ^News-([0-9]{1,15})-commentstart-([0-9]{1,15})-(.*)(\.html)?$ news.php?readmore=$1&c_start=$2 [L,NC]
RewriteRule ^News-([0-9]{1,15})-(.*)(\.html)?$ news.php?readmore=$1 [L,NC]
RewriteRule ^News-Categories(\.html)?$ news_cats.php [L,NC]
RewriteRule ^News-Category-([0-9]{1,15})-(.*)(\.html)?$ news_cats.php?cat_id=$1 [L,NC]

## Articles and Article Cats

RewriteRule ^Articles(\.html)?$ articles.php [L,NC]
RewriteRule ^Article-([0-9]{1,15})-commentstart-([0-9]{1,15})-(.*)(\.html)?$ articles.php?article_id=$1&c_start=$2 [L,NC]
RewriteRule ^Article-([0-9]{1,15})-(.*)(\.html)?$ articles.php?article_id=$1 [L,NC]
RewriteRule ^Article-Category-([0-9]{1,15})-rowstart-([0-9]{1,15})-(.*)(\.html)?$ articles.php?cat_id=$1&rowstart=$2 [L,NC]
RewriteRule ^Article-Category-([0-9]{1,15})-(.*)(\.html)?$ articles.php?cat_id=$1 [L,NC]

## Downloads and Download Cats

RewriteRule ^Downloads(\.html)?$ downloads.php [L,NC]
RewriteRule ^Download-Category-([0-9]{1,15})-page-([0-9]{1,15})-(.*)(\.html)?$ downloads.php?cat_id=$1&page=$2 [L,NC]
RewriteRule ^Download-([0-9]{1,15})-cat-([0-9]{1,15})-(.*)(\.html)?$ downloads.php?cat_id=$2&download_id=$1 [L,NC]
RewriteRule ^Download-Category-([0-9]{1,15})-(.*)(\.html)?$ downloads.php?cat_id=$1 [L,NC]
RewriteRule ^Download-([0-9]{1,15})-(.*)(\.html)?$ downloads.php?download_id=$1 [L,NC]

## FAQ

RewriteRule ^FAQ(\.html)?$ faq.php [L,NC]
RewriteRule ^FAQ-Category-([0-9]{1,15})-(.*)(\.html)?$ faq.php?cat_id=$1 [L,NC]

## Photo Albums and Photos

RewriteRule ^Photogallery(\.html)?$ photogallery.php [L,NC]
RewriteRule ^Photogallery-([0-9]+)(\.html)?$ photogallery.php?page=$1 [L,NC]
RewriteRule ^Photogallery-Album-([0-9]+)-([0-9]+)-(.*)(\.html)?$ photogallery.php?album_id=$1&rowstart=$2 [L,NC]
RewriteRule ^Photogallery-Album-([0-9]+)-(.*)(\.html)?$ photogallery.php?album_id=$1 [L,NC]
RewriteRule ^Photo-([0-9]+)-(.*)(\.html)?$ photogallery.php?photo_id=$1 [L,NC]

## Weblinks and Weblink Cats

RewriteRule ^Weblinks(\.html)?$ weblinks.php [L,NC]
RewriteRule ^Weblinks-Category-([0-9]{1,15})-rowstart-([0-9]{1,15})-(.*)(\.html)?$ weblinks.php?cat_id=$1&rowstart=$2 [L,NC]
RewriteRule ^Weblinks-Category-([0-9]{1,15})-(.*)(\.html)?$ weblinks.php?cat_id=$1 [L,NC]
RewriteRule ^Weblink-([0-9]{1,15})-(.*)(\.html)?$ weblinks.php?weblink_id=$1 [L,NC]

## Forums

RewriteRule ^forum\/index(\.html)?$ forum/index.php [L,NC]
## Incase the user entered anything except numbers then redirect him to forum index
RewriteRule ^forum\/Forum-([^0-9]+)(\.html)?$ forum/index.php [L,NC]
RewriteRule ^forum\/Forum-([0-9]+)-rowstart-([0-9]+)-(.*)(\.html)?$ forum/viewforum.php?forum_id=$1&rowstart=$2 [L,NC]
RewriteRule ^forum\/Forum-([0-9]+)-(.*)(\.html)?$ forum/viewforum.php?forum_id=$1 [L,NC]

## Threads

RewriteRule ^forum\/Thread-([0-9]+)-Post-([0-9]+)-(.*)(\.html)$ forum/viewthread.php?thread_id=$1&pid=$2 [L,NC]
RewriteRule ^forum\/Thread-([0-9]+)-rowstart-([0-9]+)-(.*)(\.html)?$ forum/viewthread.php?thread_id=$1&rowstart=$2 [L,NC]
RewriteRule ^forum\/Thread-([0-9]+)-(.*)(\.html)?$ forum/viewthread.php?thread_id=$1 [L,NC]
RewriteRule ^forum\/New-Thread-([0-9]+)(\.html)?$ forum/post.php?action=newthread&forum_id=$1 [L,NC]

## Submissions

RewriteRule ^Submit-Photo(\.html)?$ submit.php?stype=p [L,NC]
RewriteRule ^Submit-Article(\.html)?$ submit.php?stype=a [L,NC]
RewriteRule ^Submit-News(\.html)?$ submit.php?stype=n [L,NC]
RewriteRule ^Submit-Link(\.html)?$ submit.php?stype=l [L,NC]
RewriteRule ^Submit-Download(\.html)?$ submit.php?stype=d [L,NC]

## Messages

RewriteRule ^Messages(\.html)?$ messages.php [NC]
RewriteRule ^Messages-Inbox(\.html)?$ messages.php?folder=inbox [NC]
RewriteRule ^Messages-Outbox(\.html)?$ messages.php?folder=outbox [NC]
RewriteRule ^Messages-Archive(\.html)?$ messages.php?folder=archive [NC]
RewriteRule ^Messages-Options(\.html)?$ messages.php?folder=options [NC]
RewriteRule ^Compose-Message-([0-9]+)(\.html)?$ messages.php?msg_send=$1 [L,NC]

## Print Pages

RewriteRule ^Print-News-([0-9]+)-(.*)(\.html)?$ print.php?type=N&item_id=$1 [L,NC]
RewriteRule ^Print-Article-([0-9]+)-(.*)(\.html)?$ print.php?type=A&item_id=$1 [L,NC]
RewriteRule ^Print-Thread-([0-9]+)-Post-([0-9]+)-nr-([0-9]+)-(.*)(\.html)?$ print.php?type=F&thread=$1&post=$2&nr=$3 [L,NC]
RewriteRule ^Print-Thread-([0-9]+)-(.*)(\.html)?$ print.php?type=F&thread=$1 [L,NC]
RewriteRule ^Terms-of-Agreement(\.html)?$ print.php?type=T [L,NC]

## Contact

RewriteRule ^Contact(\.html)?$ contact.php [NC]

## Register, Lost Password

RewriteRule ^Register(\.html)?$ register.php [NC]
RewriteRule ^Lostpassword(\.html)?$ lostpassword.php [NC]

## Maintenance

RewriteRule ^Maintenance(\.html)?$ maintenance.php [NC]

## Members

RewriteRule ^Members(\.html)?$ members.php [NC]
RewriteRule ^Members-Sortby-([a-zA-Z0-9_]+)-rowstart-([0-9]+)(\.html)?$ members.php?sortby=$1&rowstart=$2 [L]
RewriteRule ^Members-rowstart-([a-zA-Z0-9_]+)(\.html)?$ members.php?page=$1 [L]
RewriteRule ^Members-Sortby-([a-zA-Z0-9_]+)(\.html)?$ members.php?sortby=$1 [L]

## Edit Profile

RewriteRule ^Edit_Profile(\.html)?$ edit_profile.php [L,NC]

## Search

RewriteRule ^Search(\.html)?$ search.php [NC]

## Login, Logout

RewriteRule ^logout(\.html)?$ index.php?logout=yes [L,NC]
RewriteRule ^Login(\.html)?$ login.php [L,NC]

## Infusions General Files

RewriteRule ^infusions\/([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)(\.html)?$ infusions/$1/$2.php [L,NC]
02-01-2013 11:10
Bu kullanıcının gönderdiği tüm mesajları bul Bu mesajı alıntı yap
Yeni Cevap 


Foruma Git:


Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi