code_junkie

.htaccess isn't handling root of the folder properly

Nov 13th, 2011
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. rewriteengine on
  2.  
  3.  
  4.  
  5. ##############################
  6. # BLOG CATEGORIES HOME
  7.  
  8. rewriterule ^beach-baby/?$ index.php/site/C4/
  9. rewriterule ^adventure-baby/?$ index.php/site/C5/
  10. rewriterule ^snow-baby/?$ index.php/site/C6/
  11. rewriterule ^wild-child/?$ index.php/site/C7/
  12.  
  13.  
  14.  
  15. ##############################
  16. # BLOG CATEGORIES WITH PAGE NUMBER
  17.  
  18. rewriterule ^beach-baby/page([0-9]+)/?$ index.php/site/C4/P$1/
  19. rewriterule ^adventure-baby/page([0-9]+)/?$ index.php/site/C5/P$1/
  20. rewriterule ^snow-baby/page([0-9]+)/?$ index.php/site/C6/P$1/
  21. rewriterule ^wild-child/page([0-9]+)/?$ index.php/site/C7/P$1/
  22.  
  23.  
  24.  
  25. ##############################
  26. # BLOG INDEX WITH PAGE NUMBER
  27.  
  28. rewriterule ^page([0-9]+)/?$ index.php/P$1/
  29.  
  30.  
  31.  
  32. ##############################
  33. # BLOG POST
  34.  
  35. #rewriterule ^([^/]+)/?$ http://www.google.ca/search?q=$1
  36. rewriterule ^([^/]+)/?$ index.php/site/comments/$1/
  37.  
  38. RewriteRule ^index.html$ - [L]
Add Comment
Please, Sign In to add comment