Nefunguje odkaz na jiný presenter
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- Arminea
- Člen | 5
Ahoj, mám dotaz ohledně odkazů na jiný presenter. V @layout.latte volám {plink User:default}. Na localhostu mi to normálně funguje, ale když to hodim na web, vypíše to akorát
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
V kořenovém adresáři mám htaccess pro přesměrování
# 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 /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
#RewriteCond %{HTTP_HOST} ^(www\.)?index\.php$
RewriteRule ^$ www/ [L]
#RewriteCond %{HTTP_HOST} ^(www\.)?index\.php$
RewriteRule (.*) www/$1 [L]
</IfModule>
- Arminea
- Člen | 5
Celý .htaccess mam
# 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 /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
#RewriteCond %{HTTP_HOST} ^(www\.)?index\.php$
RewriteRule ^$ www/ [L]
#RewriteCond %{HTTP_HOST} ^(www\.)?index\.php$
RewriteRule (.*) www/$1 [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>
Debug mod jsem povolila, nic to nepíše, prostě jenom vyskočí chyba
Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Nemůže být problém v routování?