Advertisement
Guest User

Untitled

a guest
Jul 19th, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Options +FollowSymLinks +ExecCGI
  2.  
  3. <IfModule mod_rewrite.c>
  4. RewriteEngine On
  5.  
  6. # uncomment the following line, if you are having trouble
  7. # getting no_script_name to work
  8. #RewriteBase /
  9.  
  10. RewriteCond %{REQUEST_URI} /corporate/
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteRule ^(.*)$ corporate.php [QSA,L]
  13.  
  14. RewriteCond %{REQUEST_URI} /thesis/
  15. RewriteCond %{REQUEST_FILENAME} !-f
  16. RewriteRule ^(.*)$ thesis.php [QSA,L]
  17.  
  18. # we skip all files with .something
  19. #RewriteCond %{REQUEST_URI} \..+$
  20. #RewriteCond %{REQUEST_URI} !\.html$
  21. #RewriteRule .* - [L]
  22.  
  23. # we check if the .html version is here (caching)
  24. RewriteRule ^$ index.html [QSA]
  25. RewriteRule ^([^.]+)$ $1.html [QSA]
  26. RewriteCond %{REQUEST_FILENAME} !-f
  27.  
  28. # no, so we redirect to our front web controller
  29. RewriteRule ^(.*)$ index.php [QSA,L]
  30. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement