0
Guys, I do a internship at a web development company and tals and a little while ago we had a problem in redirecting the page.
In the company we used for this project Php MVC (I never got to delve into Php) and a file . htacess that also had never seen.
So about this file, can you explain to me what this code is doing?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} (\.php)$
#RewriteBase /projetos/c/*****/dev/acompanhamentoobra/
RewriteBase /acompanhamentoobra/
RewriteRule ^(.+)$ index.php?path=$1 [QSA,L]
Please, if you know a material that teaches a little about this type of file can pass me too, I gave a brief search but nothing that was significant to solve the problem.
– user61677
What problem? You asked only what he does.
– Guilherme Lautert
This post talks about the
RewriteCond
http://answall.com/q/102722/11404– JcSaint
Redirecting, when trying to enter a site that is in FTP it recognizes but is redirected to HOME. As I don’t know much about these types of files I’m going from bottom to top, and wondering if the problem might be in this file I passed
– user61677
The link @Jcsaint sent already cleared something, those ! -d and ! -f checks if the directory and file exist, probably they are not being recognized and then redirects to the index, maybe ...
– user61677
Try this: http://blog.thiagobelem.net/aprendendo-urls-amigaveis.
– ShutUpMagda
Or this: http://httpd.apache.org/docs/current/mod/mod_rewrite.html
– ShutUpMagda