0
My structure
localhost/sistema
localhost/sistema/.htaccess
localhost/sistema/site/index.php
Goal: When accessing any url
within the domínio
occur to interceptação
and the redirecionamento
to the page index.php
that’s in the directory localhost/system/website
attempt on . htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -t [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.$ - [NC,L]
RewriteRule ^.$ site/index.php [NC,L]
Upshot.
Erro 500
Where am I going wrong?
Observing:
Row
LoadModule rewrite_module modules/mod_rewrite.so
uncommented in the httpd.conf
and,
DocumentRoot "C:\Program Files\Apache24\Apache24/htdocs"
<Directory "C:\Program Files\Apache24\Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Apache log error:
htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
However, the .so
is in the folder
What the line
RewriteRule ^.$ - [NC,L]
ago?– Woss
picks up the requisitions from the root
– Carlos Rocha