Guest User

Untitled

a guest
May 24th, 2014
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. SetEnv DEFAULT_PHP_VERSION 5
  2.  
  3. RewriteEngine on
  4. #RewriteOptions MaxRedirects=1
  5.  
  6. # You may need to uncomment the following line on some hosting environments,
  7. # for example on unitedhosting.co.uk
  8. # RewriteBase /
  9.  
  10. #
  11. # Do not allow executing any PHP scripts
  12. #
  13.  
  14. #RewriteRule ^(.*).php$ index.php [L]
  15.  
  16. #
  17. # The following section automatically adds a trailing slash to all URLs
  18. #
  19.  
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  23. RewriteCond %{HTTP:X-REQUESTED-WITH} !^(XMLHttpRequest)$
  24. RewriteCond %{REQUEST_METHOD} !^HEAD$
  25. RewriteCond %{REQUEST_METHOD} !^POST$
  26. RewriteCond %{REQUEST_URI} !^/assets
  27. RewriteRule (.*)([^/])$ %{REQUEST_URI}/ [R=301,L]
  28.  
  29. #
  30. # Product files downloading URL
  31. #
  32.  
  33. RewriteRule (^download_product_file/.*) index.php?q=/$1 [L,QSA]
  34.  
  35. #
  36. # Administration Area file downloading URL
  37. #
  38.  
  39. RewriteRule ls_backend/files/get/(.*) index.php?q=/backend_file_get/$1 [L]
  40.  
  41. #
  42. # All other requests
  43. #
  44.  
  45. RewriteCond %{REQUEST_URI} !(\.(ico|js|jpg|jpeg|gif|css|png|swf|txt|xml|xls)$) [NC]
  46. RewriteCond %{REQUEST_URI} !(phproad/thirdpart/.*)
  47.  
  48. RewriteCond %{REQUEST_FILENAME} !-f
  49. #RewriteCond %{REQUEST_FILENAME} !-d
  50. RewriteRule ^(.*)$ index.php?q=/$1 [L,QSA]
  51.  
  52. ErrorDocument 404 "File not found"
  53.  
  54. #
  55. # PHP configuration
  56. #
  57.  
  58. <IfModule mod_php5.c>
  59. php_flag session.auto_start off
  60. php_value session.cookie_lifetime 31536000
  61. php_flag session.use_cookies on
  62. php_flag session.use_only_cookies on
  63. php_value session.name FWCSESSID
  64.  
  65. php_flag short_open_tag on
  66. php_flag asp_tags on
  67.  
  68. php_flag magic_quotes_gpc off
  69. php_value date.timezone GMT
  70.  
  71. php_value post_max_size 100M
  72. php_value upload_max_filesize 100M
  73.  
  74. php_value memory_limit 264M
  75. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment