A
A
ayurganov2010-10-16 22:40:01
htaccess
ayurganov, 2010-10-16 22:40:01

Apache .htaccess configuration Main directory

There is a folder with a PHP project.
The structure is as follows:
image

How to fill in .htaccess so that Apache processes the request domain.name/test/ in such a way that it transfers control to the /entries/test script

Accordingly, the server root should be addressed to /entries/index.php

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nodge, 2010-10-16
@Nodge

Try this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/entries
RewriteRule (.*) /entries/$1 [L]

M
mihavxc, 2010-10-16
@mihavxc

I don't know how correct this is, but I would somehow do
RewriteRule ^([^/]*)?$ /entries/test$1 [NC] [L]

M
Mithgol, 2010-10-17
@Mithgol

Alias /test "/path/to/site_root_directory/entries/test"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question