Htaccess: Redirect file.php to file.html, and block direct access to the file.php at the same time?

Use a meta tag redirect to the help. Html page from the help. Php (404 page) after x seconds meta HTTP-EQUIV="REFRESH" content="10; url=yourdomain.com/help.html.

Use a meta tag redirect to the help. Html page from the help. Php (404 page) after x seconds.

That's not the right way. He was asking for a 404 error. – develroot Jun 23 at 13:15.

In your . Htaccess file, you can use "permanent redirect" command: Redirect 301 /help. Php /help.html.

Order allow,deny Allow from 127.0.0.1 deny from all RewriteEngine On RewriteRule help. Html$ help. Php L And you might wanna add AddType application/x-httpd-php .

Html to make the PHP execute now show as HTML/TEXT. Edit: And you can give 404 error (cuz this htaccess will give 403 error) by adding this ErrorDocument 403 404. Php and put 404 error HTML code in that page.

This is very, very close, but it still gives me a 403 (404 with the error document redirect) when I try to access help.html... – Tony Jun 23 at 13:38 it's like after i've denied access to the help. Php, the RewriteRule, seems to jump into that denial automaticly, eventhough I'am rewriting(directing) it. – Tony Jun 23 at 13:39 Ok edited the code, try now.

– 0xAli Jun 23 at 16:25.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions