Jump to content

Close old addresses? (#403)


Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

14 minutes ago, Marc Stridgen said:

invision

I got it, thanks!

Can you tell me why this is the case:

Could contain: Text, Logo

/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! )))

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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