kintastish/mobil/master/public_html/.htaccess - Htaccess File

kintastish/mobil/master/public_html/.htaccess

#Options +FollowSymLinks
#IndexIgnore */*
#RewriteEngine on
 
# Если запрос не начинается с web, добавляем его
#RewriteCond %{REQUEST_URI} !^/(web)
#RewriteRule (.*) /web/$1
 
# Если файл или каталог не существует, идём к /web/index.php 
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /web/index.php

Options +FollowSymLinks
IndexIgnore */*

RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule . index.php

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI

Comments

Apache