I have a problem.
Have a custom mvc structure and everything works through RewriteRule in .htaccess while it is the root folder, but if I set it as subfolder it stops working.
.htaccess was
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]
AddDefaultCharset UTF-8
Then I changed the base and added:
RewriteBase /mysubfolder/mySubSubfolder/
Cong file:
ServerAdmin [email protected]
DocumentRoot /var/www/rootfolder/
< Directory /var/www/rootfolder >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Order allow,deny
allow from all
< /Directory >
< Directory /var/www/rootfolder/sub/sub/ >
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Order allow,deny
allow from all
< /Directory >
I tried some magic tricks with rewrite rule , but it seems i have a lack of knowledge. Would be great if u could help .
Thank you, sorry i'm a bit noob:)