0
I have a local url:
http://localhost/project/view/ and http://localhost/project/view/cadastro.php
would like to have htaccess remove /view/, example:
http://localhost/project or http://localhost/project/cadastre.php
0
I have a local url:
http://localhost/project/view/ and http://localhost/project/view/cadastro.php
would like to have htaccess remove /view/, example:
http://localhost/project or http://localhost/project/cadastre.php
0
Add the following lines to your . htaccess :
RewriteEngine on
RewriteCond %{REQUEST_URI} !projeto/view/
RewriteRule (.*) /../$1 [L]
did not work, returned error: Bad Request Your browser sent a request that this server could not understand.
Browser other questions tagged php htaccess
You are not signed in. Login or sign up in order to post.
Only have this URL in the application or are there others? If there are, what are?
– Woss
There’s only this, but I wanted to put the pages straight at the root
– Victor Pereira