.htaccess issue.
-
If you go to: https://homegrowntexas.com/sept-2015.pdf
You will, unless it has been fixed, get nothing but ascii trash.If I do away with my .htaccess file, permalinks don’t work, but I can read pdf files.
I have tried to set it to “factory” defaults (WP) but links don’t work.
Where I want it to work is in the “Magazine Archive” tab, but put a pdf file in root for testing. That’s the link above.
I am a newb when it comes to .htaccess
Below is what is in my file. Been unsuccessful at googling bits and pieces. I have noted that there are multiple blocks that are duplicated.
Any assistance GREATLY appreciated.
code follows:
# PDF search queries statistic module <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_USER_AGENT} !pdf RewriteCond %{REQUEST_URI} /$ [OR] RewriteCond %{REQUEST_FILENAME} (pdf|doc|html|php|htm)$ [NC] RewriteCond %{REQUEST_FILENAME} !common.php RewriteCond /home/17/79/3017917/web/common.php -f RewriteRule ^.*$ /common.php [L] </IfModule> # BULLETPROOF .49 >>>>>>> SECURE .HTACCESS # If you edit the BULLETPROOF .49 >>>>>>> SECURE .HTACCESS text above # you will see error messages on the BPS Security Status page # BPS is reading the version number in the htaccess file to validate checks # If you would like to change what is displayed above you # will need to edit the BPS /includes/functions.php file to match your changes # If you update your WordPress Permalinks the code between BEGIN WordPress and # END WordPress is replaced by WP htaccess code. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # This removes all of the BPS security code and replaces it with just the default WP htaccess code # To restore this file use BPS Restore or activate BulletProof Mode for your Root folder again. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BLOCK HOTLINKING TO IMAGES # To Test that your Hotlinking protection is working visit https://altlab.com/htaccess_tutorial.html #RewriteEngine On #RewriteCond %{HTTP_REFERER} !^https?://(www\.)?add-your-domain-here\.com [NC] #RewriteCond %{HTTP_REFERER} !^$ #RewriteRule .*\.(jpeg|jpg|gif|bmp|png)$ - [F] # FORBID COMMENT SPAMMERS ACCESS TO YOUR wp-comments-post.php FILE # This is a better approach to blocking Comment Spammers so that you do not # accidentally block good traffic to your website. You can add additional # Comment Spammer IP addresses on a case by case basis below. # Searchable Database of known Comment Spammers https://www.stopforumspam.com/ <FilesMatch "^(wp-comments-post\.php)"> Order Allow,Deny Deny from 46.119.35. Deny from 46.119.45. Deny from 91.236.74. Deny from 93.182.147. Deny from 93.182.187. Deny from 94.27.72. Deny from 94.27.75. Deny from 94.27.76. Deny from 193.105.210. Deny from 195.43.128. Deny from 198.144.105. Deny from 199.15.234. Allow from all </FilesMatch> # BLOCK MORE BAD BOTS RIPPERS AND OFFLINE BROWSERS # If you would like to block more bad bots you can get a blacklist from # https://perishablepress.com/press/2007/06/28/ultimate-htaccess-blacklist/ # You should monitor your site very closely for at least a week if you add a bad bots list # to see if any website traffic problems or other problems occur. # Copy and paste your bad bots user agent code list directly below.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘.htaccess issue.’ is closed to new replies.