A
A
Anton2015-01-27 16:02:38
htaccess
Anton, 2015-01-27 16:02:38

How to do this in .htaccess?

there is a condition

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

it is necessary to make it so that if there is no file, then it searches for it in ./../somedir, and then only sends a request to index.php
how to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ShamblerR, 2015-02-25
@ShamblerR

redirect ./../somedir to / before your rule

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question