I have a website that is structured this way:
/about
/ Css /
/index/index.php
/ Js /
/index.php
index.php uses PHP redirection to index / index.php
I want to create an .htaccess rewrite rule so that /index/index.php, BUT / etc. is displayed when accessing the root. remains the same.
If you have mod_rewrite, this should work:
RewriteEngine on RewriteRule ^$ /index/index.php [L]
This will only match / (which it sees as empty) and internally redirected to / index / index.php
Next, index / index.php will be displayed / displayed as its index file
DirectoryIndex index/index.php
.htaccess /
Source: https://habr.com/ru/post/1731828/More articles:AutoMapper - adding custom formats - c #Столбцы Django не добавляют к индексу Solr. [Работает с whoosh, терпит неудачу с Solr] - djangoAutoMapper: широкое использование сайта IValueFormatter для данных типов - configurationThe problem with displaying text without text in Unicode format using freetype font on OpenGL - fontsRuby on Rails Gem Tables - ruby-on-railspython equivalent function - pythonA simple example of scheduling process gangs in Python? - pythonFancybox box positioning? - jqueryto create a site for mobile and PC with django - djangoКак кодировать/декодировать CFUUIDRef в Objective-C - guidAll Articles