A
A
Alexander Balashov2017-05-01 11:23:49
PHP
Alexander Balashov, 2017-05-01 11:23:49

How to make CNC on htaccess?

In general, you need to make sure that when opening .html files, .php files are shown. Those. the url address is *.html, and the document itself is in php

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
D3lphi, 2017-05-01
@ab9

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.html$ $1.php

V
Vladimir Zhosan, 2017-05-01
@iaskivsky

CNC and front controller

V
Vladimir Balin, 2017-05-11
@krocos

It's better not to do that :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question