how to make a file accessible via http://[URL]/file

Author Message

Rafal Zrobecki

Tuesday 19 December 2006 4:01:42 am

hi there,

this is my .htaccess:

php_value allow_call_time_pass_reference 0

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html|xml)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

<Files "ezpublish-3.8.6">
   order allow,deny
   allow from all
</Files>

RewriteEngine On
RewriteRule !sitemap\.xml|\.(gif|jpe?g|png|css|js|htm|html|swf)|var(.+)storage.pdf(.+)\.pdf$ index.php
DirectoryIndex index.php

I'd like to make a sitemap.xml visible via http://[url]/sitemap.xml.

http://www.zrobecki.com

Claudia Kosny

Wednesday 20 December 2006 12:16:45 pm

Hello Rafal

Your htaccess works fine on my server. What is the problem? What happens when you try to access the sitemap.xml file?

Claudia

Rafal Zrobecki

Wednesday 20 December 2006 3:54:38 pm

hi Claudia

this is what i get:

Module not found

The requested module sitemap.xml could not be found.

Possible reasons for this are:

    * The module name was misspelled, try changing the URL.
    * The module does not exist on this site.
    * This site uses siteaccess matching in the URL and you didn't supply one, try inserting a siteaccess name before the module in the URL .

apart from the changes in .htaccess I asked my admin to make changes for my account

<VirtualHost x>
   <Directory x>
       Options FollowSymLinks
       AllowOverride None
   </Directory>

   <IfModule mod_php4.c>
       php_admin_flag safe_mode Off
       php_admin_value register_globals    0
       php_value magic_quotes_gpc  0
       php_value magic_quotes_runtime  0
       php_value allow_call_time_pass_reference 0
   </IfModule>

   DirectoryIndex index.php

   <IfModule mod_rewrite.c>
       RewriteEngine On
       Rewriterule ^/var/storage/.* - [L]
       Rewriterule ^/var/[^/]+/storage/.* - [L]
       RewriteRule ^/var/cache/texttoimage/.* - [L]
       RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
       Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
       Rewriterule ^/share/icons/.* - [L]
       Rewriterule
^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* -
[L]
       Rewriterule
^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
       RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
       RewriteRule ^/favicon\.ico - [L]
       RewriteRule ^/robots\.txt - [L]
       # Uncomment the following lines when using popup style debug.
       # RewriteRule ^/var/cache/debug\.html.* - [L]
       # RewriteRule ^/var/[^/]+/cache/debug\.html.* - [L]
       RewriteRule .* /index.php
   </IfModule>

   DocumentRoot x
   ServerName x   
   ServerAlias x
</VirtualHost>

http://www.zrobecki.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:33:39
Script start
Timing: Jan 18 2025 22:33:39
Module start 'layout'
Timing: Jan 18 2025 22:33:39
Module start 'content'
Timing: Jan 18 2025 22:33:40
Module end 'content'
Timing: Jan 18 2025 22:33:40
Script end

Main resources:

Total runtime1.0244 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1641152.6563
Module start 'layout' 0.00480.0034 740.820339.5078
Module start 'content' 0.00821.0145 780.3281502.4063
Module end 'content' 1.02280.0016 1,282.734412.1094
Script end 1.0244  1,294.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3280160.0002
Check MTime0.00150.1425160.0001
Mysql Total
Database connection0.00080.075510.0008
Mysqli_queries0.980595.7093570.0172
Looping result0.00050.0530550.0000
Template Total0.994897.120.4974
Template load0.00220.216020.0011
Template processing0.992696.890420.4963
Template load and register function0.00010.012110.0001
states
state_id_array0.00090.090710.0009
state_identifier_array0.00080.076820.0004
Override
Cache load0.00180.1764170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.089920.0005
Fetch class attribute name0.00100.097930.0003
XML
Image XML parsing0.00020.022520.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00050.0505100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs