problem s sitemap.xml na production
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
- vosy
- Člen | 532
Ahoj mam ve RouteruFactory nastaveno
$xmlRouter[] = new Route('sitemap.xml','Homepage:sitemap');
na localu vse funguje, ale jak to frknu na ostry server „VIRTIO“ a zadam domena.cz/sitemap.xml tak se mi zobrazi
Not Found
The requested URL /sitemap was not found on this server.
v logu nete nic nemam a v logu poskytovatele je ze soubor neexistuje.
:(
htaccess:
# Apache configuration file (see httpd.apache.org/docs/current/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]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule img/(.*?)\.jpg$ index.php [L]
# 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>