500 Internal Server occured without using http

500 Internal Server Error Something on the website crashed!

https://acharyapawan.com.np/lifehack works but
https://acharyapawan.com.np/app-ads.txt doesn’t

And strange issue is
https:// www. acharyapawan.com.np/app-ads.txt works

.htaccess file content

RewriteEngine On
RewriteRule ^lifehack$ /lifehack.html [L]
RewriteRule ^app-ads.txt$ /app-ads.txt [L]

What’s the purpose of this rule? The URL /app-ads.txt will load the file /app-ads.txt automatically, no .htaccess rule required. Adding a rule to do that anyway would essentially just create an infinite loop.

Or maybe you want to do something else? If so, please tell us what you want to do so we can help you figure out the right .htaccess rules to use for it.

2 Likes

I want that
this URL https://acharyapawan.com.np/app-ads.txt will load the app-ads.txt file

I removed RewriteRule ^app-ads.txt$ /app-ads.txt [L] rule still I get the same error.

Please clear your browser cache by pressing a few times Ctrl + F5 while visiting your website.

If that doesn’t work (because some browsers are stubborn) then follow this guide:

2 Likes

Thanks, it is working now
Removing the rule was the solution and of course clearing browser cache.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.