Advertisement
GarryLaly

.htaccess Company Profile Cova by Great Work

Mar 18th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine On
  3.  
  4. RewriteBase /cova/
  5.  
  6. #Halaman Utama
  7. RewriteRule ^home/?$ index.php?page=home
  8. RewriteRule ^product/?$ index.php?page=product [QSA]
  9. RewriteRule ^contact/?$ index.php?page=contact
  10. RewriteRule ^about/?$ index.php?page=about
  11. RewriteRule ^testimonial/?$ index.php?page=testimonial
  12.  
  13. #Halaman Utama Product
  14. RewriteRule ^product/?page/?([0-9]+)/?limit/?([0-9]+)/?$ index.php?page=product&number=$1&limit=$2 [QSA]
  15. RewriteRule ^product/?page/?([0-9]+)/?limit/?([0-9]+)/?category/?([0-9]+)/?$ index.php?page=product&number=$1&limit=$2&category=$3 [QSA]
  16. RewriteRule ^product/?page/?([0-9]+)/?limit/?([0-9]+)/?order/?([a-z]+)/?$ index.php?page=product&number=$1&limit=$2&order=$3 [QSA]
  17. RewriteRule ^product/?page/?([0-9]+)/?limit/?([0-9]+)/?([0-9]+)/?([a-z]+)/?$ index.php?page=product&number=$1&limit=$2&category=$3&order=$4 [QSA]
  18. RewriteRule ^product/?([0-9a-z_-]+)/?$ index.php?p=product&page=detproduct&title=$1 [QSA]
  19. RewriteRule ^product/?page/?([0-9]+)/?$ index.php?page=product&number=$1 [QSA]
  20.  
  21. #-----------------------------------------
  22.  
  23. #Halaman Admin
  24. RewriteRule ^admin/?login/?$ admin/login.php
  25. RewriteRule ^admin/?([a-z]+)/?$ admin/index.php?page=$1 [QSA]
  26.  
  27. #Halaman Admin Product
  28. RewriteRule ^admin/?product/?new/?$ admin/index.php?p=product&page=newproduct [QSA]
  29. RewriteRule ^admin/?product/?edit/?([0-9]+)/?$ admin/index.php?p=product&page=editproduct&id=$1 [QSA]
  30. RewriteRule ^admin/?product/?delete/?([0-9]+)/?$ admin/index.php?p=product&page=delproduct&id=$1 [QSA]
  31. RewriteRule ^admin/?product/?delete-selected/?$ admin/index.php?p=product&page=delproduct&type=0 [QSA]
  32. RewriteRule ^admin/?product/?publish/?$ admin/index.php?p=product&page=pubproduct [QSA]
  33. RewriteRule ^admin/?product/?unpublish/?$ admin/index.php?p=product&page=unpubproduct [QSA]
  34. RewriteRule ^admin/?product/?slideshow/?add/?([0-9]+)/?$ admin/index.php?page=product-slideshow&type=0&id=$1 [QSA]
  35. RewriteRule ^admin/?product/?slideshow/?remove/?([0-9]+)/?$ admin/index.php?page=product-slideshow&type=1&id=$1 [QSA]
  36. RewriteRule ^admin/?product/?page/?([0-9]+)/?limit/?([0-9]+)/?$ admin/index.php?page=product&number=$1&limit=$2 [QSA]
  37. RewriteRule ^admin/?product/?page/?([0-9]+)/?limit/?([0-9]+)/?category/?([0-9]+)/?$ admin/index.php?page=product&number=$1&limit=$2&category=$3 [QSA]
  38. RewriteRule ^admin/?product/?page/?([0-9]+)/?limit/?([0-9]+)/?order/?([a-z]+)/?$ admin/index.php?page=product&number=$1&limit=$2&order=$3 [QSA]
  39. RewriteRule ^admin/?product/?page/?([0-9]+)/?limit/?([0-9]+)/?([0-9]+)/?([a-z]+)/?$ admin/index.php?page=product&number=$1&limit=$2&category=$3&order=$4 [QSA]
  40. RewriteRule ^admin/?product/?([0-9a-z_-]+)/?$ admin/index.php?p=product&page=detproduct&title=$1 [QSA]
  41. RewriteRule ^admin/?product/?page/?([0-9]+)/?$ admin/index.php?page=product&number=$1 [QSA]
  42.  
  43. #Halaman Admin Category
  44. RewriteRule ^admin/?category/?new/?$ admin/index.php?p=category&page=newcategory
  45. RewriteRule ^admin/?category/?edit/?([0-9]+)/?$ admin/index.php?p=category&page=editcategory&id=$1
  46. RewriteRule ^admin/?category/?delete/?([0-9]+)/?$ admin/index.php?p=category&page=delcategory&id=$1
  47. RewriteRule ^admin/?category/?delete-selected/?$ admin/index.php?p=category&page=delcategory&type=0
  48. RewriteRule ^admin/?category/?page/?([0-9]+)/?limit/?([0-9]+)/?$ admin/index.php?page=category&number=$1&limit=$2
  49. RewriteRule ^admin/?category/?page/?([0-9]+)/?$ admin/index.php?page=category&number=$1
  50.  
  51. #---------------------------------------
  52.  
  53. #Halaman Admin Slideshow
  54. RewriteRule ^admin/?slideshow/?remove-selected/?$ admin/index.php?p=slideshow&page=remslideshow&type=0
  55. RewriteRule ^admin/?slideshow/?remove/?([0-9]+)/?$ admin/index.php?p=slideshow&page=remslideshow&id=$1
  56.  
  57. #---------------------------------------
  58.  
  59. #Halaman Admin Inbox
  60. RewriteRule ^admin/?inbox/?view/?([0-9]+)/?$ admin/index.php?p=inbox&page=vwinbox&id=$1
  61. RewriteRule ^admin/?inbox/?delete-selected/?$ admin/index.php?p=inbox&page=delinbox&type=0
  62. RewriteRule ^admin/?inbox/?delete/?([0-9]+)/?$ admin/index.php?p=inbox&page=delinbox&id=$1
  63. RewriteRule ^admin/?inbox/?page/?([0-9]+)/?limit/?([0-9]+)/?$ admin/index.php?page=inbox&number=$1&limit=$2
  64. RewriteRule ^admin/?inbox/?page/?([0-9]+)/?$ admin/index.php?page=inbox&number=$1
  65.  
  66. #---------------------------------------
  67.  
  68. #Halaman Admin Testimonial
  69. RewriteRule ^admin/?testimonial/?view/?([0-9]+)/?$ admin/index.php?p=testimonial&page=vwtestimonial&id=$1
  70. RewriteRule ^admin/?testimonial/?delete-selected/?$ admin/index.php?p=testimonial&page=deltestimonial&type=0
  71. RewriteRule ^admin/?testimonial/?delete/?([0-9]+)/?$ admin/index.php?p=testimonial&page=delinbox&id=$1
  72. RewriteRule ^admin/?testimonial/?page/?([0-9]+)/?limit/?([0-9]+)/?$ admin/index.php?page=testimonial&number=$1&limit=$2
  73. RewriteRule ^admin/?testimonial/?page/?([0-9]+)/?$ admin/index.php?page=testimonial&number=$1
  74.  
  75. ErrorDocument 404 http://localhost/cova/404.php
  76.  
  77. Options All -Indexes
  78. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement