Mac Os 10.8.5 s AMPPS nefunguje rewrite
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- Tom_as
- Člen | 28
Zdravim,
poridli jsem si novy stroj a nainstaloval balicek AMPPS, htaccess je povoleny ale kdyz chci nacist projekt tak aplikace provede $this->redirect ale stranka se nenacte.
Nemate nekdo zkusenosti s timto balikem?
Moje htaccess je
# Apache configuration file (see httpd.apache.org/docs/2.2/mod/quickreference.html)
# disable directory listing
#Options -Indexes
# enable cool URL
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# prevents files starting with dot to be viewed by browser
RewriteRule /\.|^\. - [F]
# front controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
</IfModule>
# enable gzip compression
#<IfModule mod_deflate.c>
# AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
#</IfModule>
#
# allow combined JavaScript & CSS. Inside of script.combined.js you could use <!--#include file="script.js" -->
#<IfModule mod_include.c>
# <FilesMatch "\.combined\.(js|css)$">
# Options +Includes
# SetOutputFilter INCLUDES
# </FilesMatch>
#</IfModule>
Vsem moc dekuji