Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{SERVER_PORT} 80
  3. RewriteCond %{HTTP_HOST} ^personallifecounsel\.com$ [OR]
  4. RewriteCond %{HTTP_HOST} ^www\.personallifecounsel\.com$
  5. RewriteRule ^(.*)$ https://www.personallifecounsel.com/$1 [R,L]
  6. ##
  7. # @package Joomla
  8. # @copyright Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved.
  9. # @license GNU General Public License version 2 or later; see LICENSE.txt
  10. ##
  11.  
  12. ##
  13. # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
  14. #
  15. # The line 'Options +FollowSymLinks' may cause problems with some server configurations.
  16. # It is required for the use of mod_rewrite, but it may have already been set by your
  17. # server administrator in a way that disallows changing it in this .htaccess file.
  18. # If using it causes your site to produce an error, comment it out (add # to the
  19. # beginning of the line), reload your site in your browser and test your sef urls. If
  20. # they work, then it has been set by your server administrator and you do not need to
  21. # set it here.
  22. ##
  23.  
  24. ## No directory listings
  25. IndexIgnore *
  26.  
  27. ## Can be commented out if causes errors, see notes above.
  28. Options +FollowSymlinks
  29. Options -Indexes
  30.  
  31. ## Mod_rewrite in use.
  32.  
  33. RewriteEngine On
  34.  
  35. ## Begin - Rewrite rules to block out some common exploits.
  36. # If you experience problems on your site then comment out the operations listed
  37. # below by adding a # to the beginning of the line.
  38. # This attempts to block the most common type of exploit `attempts` on Joomla!
  39. #
  40. # Block any script trying to base64_encode data within the URL.
  41. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
  42. # Block any script that includes a <script> tag in URL.
  43. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
  44. # Block any script trying to set a PHP GLOBALS variable via URL.
  45. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  46. # Block any script trying to modify a _REQUEST variable via URL.
  47. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  48. # Return 403 Forbidden header and show the content of the root home page
  49. RewriteRule .* index.php [F]
  50. #
  51. ## End - Rewrite rules to block out some common exploits.
  52.  
  53. ## Begin - Custom redirects
  54. #
  55. # If you need to redirect some pages, or set a canonical non-www to
  56. # www redirect (or vice versa), place that code here. Ensure those
  57. # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
  58. #
  59. ## End - Custom redirects
  60.  
  61. ##
  62. # Uncomment the following line if your webserver's URL
  63. # is not directly related to physical file paths.
  64. # Update Your Joomla! Directory (just / for root).
  65. ##
  66.  
  67. # RewriteBase /
  68.  
  69. ## Begin - Joomla! core SEF Section.
  70. #
  71. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  72. #
  73. # If the requested path and file is not /index.php and the request
  74. # has not already been internally rewritten to the index.php script
  75. RewriteCond %{REQUEST_URI} !^/index\.php
  76. # and the requested path and file doesn't directly match a physical file
  77. RewriteCond %{REQUEST_FILENAME} !-f
  78. # and the requested path and file doesn't directly match a physical folder
  79. RewriteCond %{REQUEST_FILENAME} !-d
  80. # internally rewrite the request to the index.php script
  81. RewriteRule .* index.php [L]
  82. #
  83. ## End - Joomla! core SEF Section.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement