There is a site structure:
site client loginpage index.php mainpage index.php blogpage index.php server login.php savesession.php // Всякие другие скрипты When the server was started, the site selected as the working directory. This is done so that you can refer to scripts from the server folder from index.php . If you choose a client, then you will not be able to refer to these scripts (it seems that I could be completely mistaken, please correct it).
Everything works fine, it’s already written, but url doesn't like it.
That is, for the login page, the url will be like this: http://site/client/login .
How can I correct .htaccess so that the pages are: http://site/login , that is, simply without displaying the client folder?
In addition, it is very interesting whether it will be a purely visual effect or will you have to rewrite all the paths in scripts?
RewriteRule- changes the request, but does not change the URL. But if you specify a redirect, the URL will also change. Combine at discretion. In scripts, you will have to rewrite relative paths, since they are going from the URL - DNS