I have the following rule in the root:
RewriteEngine On
RewriteRule ^webapp/(.*)$ ./sistema/public/v1/webapp/$1 [L,R=301]
The problem is that when I type in the browser: link
He is redirecting and not rewriting to: link
VHost:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/myuser/projects/projetoxyx"
ServerName projetoxyx.local
ServerAlias www.projetoxyx.local
ErrorLog "logs/dummy-projetoxyz-error.log"
CustomLog "logs/dummy-projetoxyz-access.log" common
setEnv APPLICATION_ENV "development"
<Directory "/Users/myuser/projects/">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
This is system: ./system/public/.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::^B$
RewriteRule ^(.*)$ - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
Options -Indexes
What do you need to do to prevent it from redirecting?