.htaccess - robots.txt returns 404, Magento ver. 1.9.0.1 site hosted on webfusion.co.uk -
i have hosting account webfusion.co.uk host few websites. have uploaded robots.txt file , sitemap.xml file. when try visiting them: www.ledflexi.co.uk/robots.txt or www.ledflexi.co.uk/sitemap.xml. site returns 404 error.
i have uploaded both files root folder of each site (public_html/led-flex.co.uk)
could following lines of .htaccess file related problem?
############################################ ## send 404 on missing files in these folders rewritecond %{request_uri} !^/(media|skin|js)/ ############################################ ## never rewrite existing files, directories , links rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l ############################################ ## rewrite else index.php rewriterule .* index.php [l] </ifmodule> ############################################ ## prevent character encoding issues server overrides ## if still have problems, use second line instead adddefaultcharset off #adddefaultcharset utf-8 <ifmodule mod_expires.c> ############################################ ## add default expires header ## http://developer.yahoo.com/performance/rules.html#expires expiresdefault "access plus 1 year" </ifmodule> ############################################ ## default allow access order allow,deny allow ########################redirection############################
please check file name, in linux servers if name not in exact case have typed. return 404. make sure filename 'robots.txt' (all small case)
Comments
Post a Comment