79163434

Date: 2024-11-06 16:27:05
Score: 1
Natty:
Report link

I've solved this by adding.htaccess file in htdocs folder of XAMPP. Here is the code:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/addonfolder/(.*)$
RewriteRule ^(.*)$ - [L,R=404]

Now domain.com/sub.domain.com has no access to sub.domain.com folder in htdocs, it retunrs 404 error.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nazmul Hasan Pias