D
D
DrNemo2012-08-07 15:39:11
Apache HTTP Server
DrNemo, 2012-08-07 15:39:11

.htaccess and engine.php one level up, how?

task:
there is a folder /home/serv/sub/ where the domain refers
, all requests must be sent to the /home/serv/engine.php file, i.e. Parent topic How to
configure .htaccess?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
EugeneOZ, 2012-08-07
@EugeneOZ

Forget about .htaccess - it will be easier to switch to nginx. In this case, use index.php

C
cronfy, 2012-08-07
@cronfy

.htaccess won't help. It can only redirect inside the DocumentRoot. Logging out through ../ rules .htaccess is not possible.
So it remains only to edit the VirtualHost, if there is access. Or, as advised above, symlinks or fake index.php.

N
Nazar Mokrinsky, 2012-08-07
@nazarpc

What does .htaccess have to do with it? How do you send requests for that file if the domain is connected down the tree? With include?

M
m03r, 2012-08-07
@m03r

RewriteBase will help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question