.htaccess 584 B

12345678910111213141516171819202122
  1. <IfModule mod_rewrite.c>
  2. Options +FollowSymLinks
  3. RewriteEngine On
  4. # if requested file exists use it
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. # if requested directory exists use it
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule ^watch\?*$ video.php [L,QSA]
  9. RewriteRule ^channel/(.*)$ channel.php?id=$1 [L,QSA]
  10. RewriteRule ^search\?*$ search.php [L,QSA]
  11. RewriteRule ^feed/trending*$ trending.php [L,QSA]
  12. </IfModule>
  13. # Deny access to config file
  14. <Files "inc/config.inc.php">
  15. Order Allow,Deny
  16. Deny from all
  17. </Files>
  18. Options -Indexes +FollowSymLinks
  19. IndexIgnore *