LastPlay Posted January 25, 2023 Posted January 25, 2023 1- I have a redirect from the old domain to the new domain... 2 - Some pages of the old domain still remain in the search engine... (page_name.html). Would it be correct to add in .htaccess:<files *.html> order allow,deny deny from all </files> (I do 403 because they are scanned by bots... Real users do not go to these addresses) No *.html pages inside invision? Maybe you can suggest a better option?
Marc Posted January 25, 2023 Posted January 25, 2023 This is a question better asked of your hosting company. However I would point out there that there isnt really a question. You have asked if its correct, but havent actually said what you are wanting it to do. I would say, denying all html is probably not advisable
LastPlay Posted January 25, 2023 Author Posted January 25, 2023 5 minutes ago, Marc Stridgen said: I would say, denying all html is probably not advisable *my question got lost between the lines )) If invision doesn't have *.html pages, why not?
Marc Posted January 25, 2023 Posted January 25, 2023 As mentioned, really this is a question for your hosting company. I could say that you are unlikely to see them in invision, however you will have other things in your hosting such as control panels and the likes it may cause problems with. We cannot advise on items outside of the invision platform unfortunately.
LastPlay Posted January 25, 2023 Author Posted January 25, 2023 14 minutes ago, Marc Stridgen said: invision I got it, thanks! Can you tell me why this is the case: /video/reviews/****************************.html is the old address. I redirect: Redirect 301 /video/reviews/ https://mysite.com/403error.php On the second line you can see what happens: GET /403error.php695-obz************ The bot glued the request and the page together... and gets 404 error )) 403 page: <?php header("HTTP/1.0 403 Forbidden"); print <<<EOF <html> <title>403 Forbidden</title> <body> <div align="center"> <h1>Forbidden</h1> <p><img src="/403.png"></p><br> <p><h2>You don't have permission to access this resource.</h2></p> </div> </body> </html> EOF; exit; or add more: <files 403.php*> order allow,deny deny from all </files> After the redirect, the bot goes to the 403error page and then the bot sticks the request, it gets 403 again?! *If it's to the hosting again, then I have no more questions! )))
Marc Posted January 25, 2023 Posted January 25, 2023 It would indeed be a question for your hosting company there, unfortunately. I will move this to advanced self hosting though, as there may be someone else who can answer the questions you have there LastPlay 1
Recommended Posts