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
+
0
-

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>
ViPEr*CZ*
Člen | 814
+
0
-

<IfModule mod_rewrite.c> je podmínka… pokud na serveru není povolený tento modul apache, tak se podmínka nesplní a nefunguje rewrite.

enumag
Člen | 2118
+
0
-

A pokud mod_rewrite na serveru je povolen tak zakomentuj RewriteBase.

Arminea
Člen | 5
+
0
-

Vypadá to, že rewrite funguje, ale ta chyba 404 je tam pořád.

saimons
Člen | 293
+
0
-

Co puzivas za hosting? A to je vsechno co mas v tom .htaccess?
Povol si debug mod, at vidis co ti to pise.

Arminea
Člen | 5
+
0
-

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í?