LINUX.ORG.RU

Сообщения iGOR4577

 

не открываются файлы .xml

Форум — Web-development

если в корень положить любой файл .xml он не открывается, ошибка 404, sitemap.xml открывается, прописали с саппорта хостинга это в .htaccess - #RewriteRule ^(.*)$ /index.php/$1 [L], файлы стали открываться! но сайт не открывается, хостинг timeweb, imagecms....Сильно не «пинайте»...новенький в этом деле...Спасибо!

сам .htaccess

AddDefaultCharset UTF-8

Options +FollowSymLinks Options -Indexes

RewriteEngine on

# RewriteCond %{HTTP_HOST} ^http://www.site.com$ [NC] # RewriteRule ^(.*)$ http://site.com/$1 [L,R=301]

<ifModule pagespeed_module> Modpagespeed off </ifModule>

#apache2ctl -M && sudo a2enmod expires && sudo service apache2 restart (to enable mod_expires on ubuntu) <IfModule mod_expires.c> ExpiresActive On ExpiresDefault «access 7 days» ExpiresByType image/gif «access plus 1 year» ExpiresByType image/jpeg «access plus 1 year» ExpiresByType image/png «access plus 1 year» ExpiresByType image/jpg «access plus 1 year» ExpiresByType image/x-icon «access 1 year» ExpiresByType application/x-shockwave-flash «access 1 year» ExpiresByType application/javascript «access 1 year» ExpiresByType application/x-javascript «access 1 year» ExpiresByType text/css «access 1 year» ExpiresByType text/html «access 1 year» </IfModule>

RewriteRule ^(.*)\.tpl$ [R=404] RewriteRule ^(.*)backups(.*)\.zip$ [R=404]

RewriteCond $1 !^(index\.php|assets/.*|uploads/.*|application/third_party/(tinymce|filemanager|studio-42).*|favicon\.ico|favicon\.png|captcha/.*|application/.*/templates|application/.*/assets/js|application/.*/assets/css|application/.*/assets/images|CHANGELOG.xml|templates|js|application/modules/update/UpdateService.wsdl) RewriteRule ^(.*)$ /index.php/$1 [L]

#################################### # or # RewriteRule ^(.+)$ index.php?$1 [L] # or # RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]

 

iGOR4577
()

RSS подписка на новые темы