Removing public/index.php from url

I am creating app based on mvc. My index.php is in public, but when I load app, it shows app and pub, but it should me redirect to index. I tried to change .htaccess, but won’t work, so I guess I should change path in vhost, but I am not sure how to do it.


<IfModule mod_rewrite.c>
Options -Multiviews

RewriteEngine On

RewriteBase /Library/public
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

You can’t change the vhost path in an .htaccess file. Do you have access to the full server config, usually residing in /etc/apache2?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.