R
R
rinaz222018-11-20 17:30:05
PHP
rinaz22, 2018-11-20 17:30:05

How to close a specific page of the site on those jobs?

Hello! Is there an easy way to close a specific page of a site on those jobs?
Of course, you can put a condition in the page file, but is it possible to somehow specify the path to the page in htaccess and so that this page closes on those jobs?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nvdfxx, 2018-11-20
@nvdfxx

standard redirect via htacces to the 404 page, but not 404, but the tech page. work won't work, will it? Or is it critical for you that the url on the page since those. work was saved?

S
SayrusCraft, 2018-11-21
@SayrusCraft

Add to .htaccess file:

RewriteEngine On
RewriteRule ^filename.php$ errorfile.php [QSA]

filename.php - when requesting this file, the user will get the page errorfile.php .
PS - the names and paths of the files need to be rewritten to suit your needs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question