Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I 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 Off

    limit file uploads to 10mb
    LimitRequestBody 10240000

    protect 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 all

    custom error docs
    ErrorDocument 404 /notfound.php
    ErrorDocument 403 /forbidden.php
    ErrorDocument 500 /error.php

    disable directory browsing
    Options All -Indexes

    redirect old to new
    Redirect 301 /old.php https://www.yourdomain.com/new.php

    block 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]

    I 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 Off

    limit file uploads to 10mb
    LimitRequestBody 10240000

    protect 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 all

    custom error docs
    ErrorDocument 404 /notfound.php
    ErrorDocument 403 /forbidden.php
    ErrorDocument 500 /error.php

    disable directory browsing
    Options All -Indexes

    redirect old to new
    Redirect 301 /old.php https://www.yourdomain.com/new.php

    block 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]

    Thread Starter ne0bi0

    (@ne0bi0)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)