php - .htaccess mod_rewrite in main directory and subdirectory -
I have a main directory with an .htaccess file that looks like this
 % {REQUEST_FILENAME} on RewriteEngine Revoked! -f rewrite code% {REQUEST_FILENAME}! -D Rivieraith ^ index.php [L]   One of the subdirectories it looks like what I need .htaccess files to redirect to index file in each directory.
So if you go to Main / Example , then you redirect to index.php file Main directory but if you main / Subdirectory you are redirected to the index.php file in the subdirectory .
I have searched for an answer but I have not got anything.
Thanks for any help!
 rewriting engine on rewrite% {REQUEST_FILENAME}! -f rewrite code% {REQUEST_FILENAME}! -d RecoveryArulable ^ (. *) / / $ 1 / index.php [L]   This configuration does the following:
If we have this file < / P>
  /index.php /foo/index.php/var/index.php/var/boo/index.php   and you follow the file
/ foo / hello</foo/index.phpAnd, if you You request:
/ var / boo / worldYou will go to:
/ var / boo / index .php
Comments
Post a Comment