Jump to content

no custom 404 in my website


ipbfuck

Recommended Posts

Posted

I am getting a redirect loop when purposely accessing a 404. You may want to double check that your .htaccess is exactly as provided and not altered.

Posted

this is My htaccess:

 

<IfModule mod_rewrite.c>
Options -MultiViews
Options -Indexes

RewriteEngine On
RewriteBase /

# fix all slash request in all domain
#RewriteCond %{THE_REQUEST} //+
#RewriteRule ^(.*) $1 [R=301,L]

#RewriteCond %{HTTP_HOST} ^laltroweb.it [NC]
#RewriteRule ^(.*)$ https://www.laltroweb.it/$1 [L,R=301,NC]

# ipb code
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) - [L,NC,R=404]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

</IfModule>

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...