How to change the root of my site, while the folder is up one level?

0

My question is in .htaccess , because I can only make the root of my site the public_html folder or some other folder within public_html , but I need a folder that is one level above.

RewriteEngine On

RewriteBase /
RewriteCond %{HTTP_HOST} ^www.meusite.com.br/$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.meusite.com.br/$
RewriteCond %{REQUEST_URI} !meudiretorio/
RewriteRule (.*) /meudiretorio/$1 [L]
    
asked by anonymous 28.08.2018 / 17:57

1 answer

0

This is not done in .htaccess .

You should change the Apache configuration in httpd.conf. See DocumentRoot .

    
28.08.2018 / 18:12