C
C
Chesterfield252022-01-03 18:16:29
htaccess
Chesterfield25, 2022-01-03 18:16:29

How to set a specific directory?

I have .htaccess, how can I set a specific directory in it?
for example:https://site.ru/ip/api/v1/

AddDefaultCharset utf-8

RewriteEngine On
RewriteCond ${REQUEST_FILENAME} !-f
RewriteCond ${REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

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