SHARE
TWEET

htaccess troubleshoot

a guest Jul 23rd, 2013 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #   BULLETPROOF PRO 5.D DEFAULT .HTACCESS      
  2.  
  3. # If you edit the line of code above you will see error messages on the BPS Security Status page
  4. # WARNING!!! THE default.htaccess FILE DOES NOT PROTECT YOUR WEBSITE AGAINST HACKERS
  5. # This is a standard generic htaccess file that does NOT provide any website security
  6. # The DEFAULT .HTACCESS file should be used for testing and troubleshooting purposes only
  7.  
  8. # my test code
  9. <IfModule mod_rewrite.c>
  10. RewriteEngine On
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
  14. RewriteRule . /holding.html [L] # to redirect all 404 pages
  15. RewriteRule bad_link\.html /holding.html [L] # to redirect selected 404 page
  16. </IfModule>
  17. # end test code
  18.  
  19. # BEGIN WordPress
  20. <IfModule mod_rewrite.c>
  21. RewriteEngine On
  22. RewriteBase /
  23. RewriteRule ^index\.php$ - [L]
  24. RewriteCond %{REQUEST_FILENAME} !-f
  25. RewriteCond %{REQUEST_FILENAME} !-d
  26. RewriteRule . /index.php [L]
  27. </IfModule>
  28.  
  29. # END WordPress
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top