ne0bi0
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get an error message when try to post commentsI have the same problem. I have checked the permalinks but I still get the same error.
I read somewhere else that the problem can be related to the htaccess file, but not sure how to proceed. Is there a generic htaccess file I can update to overwrite the current one?
This is my current htaccess file (if i replace the generic yourdomain.com with my real domain turismo-sostenible.net then, the site will give me a 500 error)
protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>disable the server signature
ServerSignature Offlimit file uploads to 10mb
LimitRequestBody 10240000protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>who has access who doesnt
order allow,deny
deny from 000.000.000.000
allow from allcustom error docs
ErrorDocument 404 /notfound.php
ErrorDocument 403 /forbidden.php
ErrorDocument 500 /error.phpdisable directory browsing
Options All -Indexesredirect old to new
Redirect 301 /old.php https://www.yourdomain.com/new.phpblock referring domains
RewriteEngine on
RewriteCond %{HTTP_REFERER} digg\.com [NC]
RewriteRule .* – [F]disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://(www\.)?yourdomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ – [F]
RewriteRule \.(gif|jpg)$ https://www.yourdomain.com/stealingisbad.gif [R,L]php compression – use with caution
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>set the canonical url
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L]protect from spam comments
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^https://%{REMOTE_ADDR}/$ [R=301,L]Forum: Fixing WordPress
In reply to: get an error message when try to post commentsI have the same problem. I have checked the permalinks but I still get the same error.
I read somewhere else that the problem can be related to the htaccess file, but not sure how to proceed. Is there a generic htaccess file I can update to overwrite the current one?
This is my current htaccess file (if i replace the generic yourdomain.com with my real domain turismo-sostenible.net then, the site will give me a 500 error)
protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>disable the server signature
ServerSignature Offlimit file uploads to 10mb
LimitRequestBody 10240000protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>who has access who doesnt
order allow,deny
deny from 000.000.000.000
allow from allcustom error docs
ErrorDocument 404 /notfound.php
ErrorDocument 403 /forbidden.php
ErrorDocument 500 /error.phpdisable directory browsing
Options All -Indexesredirect old to new
Redirect 301 /old.php https://www.yourdomain.com/new.phpblock referring domains
RewriteEngine on
RewriteCond %{HTTP_REFERER} digg\.com [NC]
RewriteRule .* – [F]disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https://(www\.)?yourdomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ – [F]
RewriteRule \.(gif|jpg)$ https://www.yourdomain.com/stealingisbad.gif [R,L]php compression – use with caution
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>set the canonical url
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R=301,L]protect from spam comments
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^https://%{REMOTE_ADDR}/$ [R=301,L]It worked! Thank you very much.
For next version, let me suggest that the texture of the photo at the slide could be changed in different ways.
Thanks again!