Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: nathanlarson3141 on Jun 22nd, 2012  |  syntax: None  |  size: 1.08 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Use PHP5CGI as default
  2.  
  3. AddHandler fcgid-script .php
  4. RewriteEngine on
  5.  
  6. # Change 'subdirectory' to be the directory you will use for your main domain.
  7. # Don't change this line.
  8. RewriteBase /
  9. RewriteCond %{REQUEST_FILENAME} !-f
  10. RewriteCond %{REQUEST_FILENAME} !-d
  11. # Change 'subdirectory' to be the directory you will use for your main domain.
  12. # Change yourdomain.com to be your main domain again.
  13. # Change 'subdirectory' to be the directory you will use for your main domain
  14. # followed by / then the main file for your site, index.php, index.html, etc.
  15.  
  16. RewriteCond %{HTTP_HOST} ^(www.)?nathania.org$
  17.  
  18. RewriteRule ^/?nathania(/.*)?$ %{DOCUMENT_ROOT}/nathania/index.php [PT,L,QSA]
  19. RewriteRule ^nathania/wiki/(.*)$ %{DOCUMENT_ROOT}/nathania/w/index.php?title=$1 [PT,L,QSA]
  20. RewriteRule ^nathania/wiki/*$ %{DOCUMENT_ROOT}/nathania/w/index.php [L,QSA]
  21. RewriteRule ^nathania/*$ %{DOCUMENT_ROOT}/nathania/w/index.php [L,QSA]
  22.  
  23. RewriteRule ^wiki/(.*)$ nathania/w/index.php?title=$1 [PT,L,QSA]
  24. RewriteRule ^wiki/*$ nathania/w/index.php [L,QSA]
  25. RewriteRule ^/*$ nathania/w/index.php [L,QSA]