Jump to content

no custom 404 in my website

Featured Replies

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.

  • Author

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>

  • Author

up...

maybe this is a server,misconfiguration?

i've this in My cpanel! Can i enable or disable some elements to try to fix this issue?

 

> http://laltroweb.it/ips4.php

 

cpanel.png

Related, I'm on nginx, and only get pretty errors for urls like /this/that, but no errors for /fake.php.

How can I get nice custom errors? :D

  • Author

u're best t'han me! I don't get in any case :P

  • Author

i've open a,ticket with My Host For this.

we have renamed ipb Index.php to Index.bkk; male a new Index.php with sample code and after of this no more loop with this htaccess.

so, problem, For my Host, is in cms not in hosting.

-

eg, Here work: http://www.laltroweb.it/homepage/fake.php

Here not: http://www.laltroweb.it/fake.php
e

someone can help with this? :/

Archived

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

Recently Browsing 0

  • No registered users viewing this page.