Guest User

Untitled

a guest
Jul 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Options +FollowSymLinks
  2. RewriteEngine on
  3.  
  4. RewriteRule ^product/([0-9]+)$ product.php?id=$1
  5.  
  6. DefaultType application/x-httpd-php
  7.  
  8. <IfModule mod_rewrite.c>
  9. RewriteEngine On
  10.  
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteRule ^(.*)$ index.php?_url=$1 [QSA,L]
  14. </IfModule>
  15.  
  16. ...
  17. <Directory />
  18. ...
  19. Options FollowSymLinks
  20. AllowOverride All
  21. ...
  22. </Directory>
  23. ...
  24.  
  25. ...
  26. <Directory "/var/www/my-site">
  27. ...
  28. Options FollowSymLinks
  29. AllowOverride All
  30. ...
  31. </Directory>
  32. ...
  33.  
  34. AddType application/x-httpd-php htm html php
  35. AddHandler application/x-httpd-php .htm .html
  36.  
  37. RewriteEngine On
  38. RewriteCond %{REQUEST_FILENAME} !-f
  39. RewriteRule ^([^.]+)$ $1.php [NC,L]
  40.  
  41. <Files Support>
  42. SetHandler php-script
  43. </Files>
  44.  
  45. <FilesMatch "^[^.]+$">
  46. ForceType application/x-httpd-php
  47. </FilesMatch>
  48.  
  49. <FilesMatch "^MySingleFileWithNoExension$">
  50. ForceType application/x-httpd-php
  51. </FilesMatch>
Add Comment
Please, Sign In to add comment