My structure
localhost/sistema
localhost/sistema/.htaccess
localhost/sistema/site/index.php
Goal : When accessing any url
within domínio
, interceptação
and redirecionamento
occur to the index.php
page that is in the localhost / system / site directory
attempt in .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]
Result .
Erro 500
Where am I going wrong?
Note :
Line
LoadModule rewrite_module modules/mod_rewrite.so
uncommented link
e,
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, so
is in the