J
J
Jack OXO2015-11-30 19:42:03
htaccess
Jack OXO, 2015-11-30 19:42:03

How to make a "404 pages" exception for a folder in cms netcat?

I created a landing page, I want to put it in a folder at the netcat root, but when I request site.ru/lp I get a standard 404 error for the site. How to overwrite it in .htaccess. Here is the ending .htaccess in the cms root:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Если NetCat стоит в подпапке, например mysite, то
# RewriteRule ^(.+)$ /mysite/netcat/require/e404.php
# в противном случае
RewriteRule ^(.+)$ /netcat/require/e404.php
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
</ifModule>

I tried to create an empty file in the landing page folder - it didn't help. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question