Ticket #1715 (assigned defect)

Opened 4 years ago

Last modified 9 months ago

SiteMap URL Issue

Reported by: malber Assigned to: demian (accepted)
Priority: normal Milestone:
Component: not categorised Severity: open
Keywords: SiteMap Cc:

Description

if conf[site][frontScriptName] = ' ' then http://www.acme.com/sitemap with take you to a directory listing, http://www.acme.com/sitemap/sitemap will return the site map XML.

if conf[site][frontScriptName] = 'index.php' then http://www.acme.com/index.php/sitemap will return the site map XML.

I assume that http://www.acme.com/sitemap should work.

Change History

08/27/09 08:49:45 changed by demian

  • owner changed from demian to malber.

The directory listing issue is the only error i can see here, and it sounds like symlinks and/or apache are not setup properly - this is not a Seagull prob.

08/27/09 08:58:01 changed by malber

  • severity changed from open to need feedback.

The .htaccess file is based on htaccess-cleanUrl.dist

# disable the server signature
ServerSignature Off
# set the default character set
AddDefaultCharset UTF-8
#<IfModule mod_rewrite.c>
############################################
## enable rewrites
    Options +FollowSymlinks
    RewriteEngine on
## sample redirect to www.domain.com
RewriteCond %{HTTP_HOST} ^bearvalleyhaven.com [NC]
RewriteRule ^(.*)$ http://www.bearvalleyhaven.com/$1 [L,R=301]
RewriteCond %{HTTPS_HOST} ^bearvalleyhaven.com [NC]
RewriteRule ^(.*)$ https://www.bearvalleyhaven.com/$1 [L,R=301]
############################################
## always send 404 on missing files in these folders
    RewriteCond %{REQUEST_URI} !^/.*(themes|wysiwyg|images|js)/
############################################
## always send 404 on missing favicon
    RewriteRule ^favicon.ico$ favicon.ico [L]
############################################
## never rewrite for existing files, directories and links
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
    RewriteRule .* index.php
#</IfModule>

08/27/09 09:20:52 changed by demian

  • owner changed from malber to demian.
  • status changed from new to assigned.

ok cool, so sounds like there's a prob, i will look into it when i get the chance.

09/28/09 18:33:31 changed by malber

  • severity changed from need feedback to open.

I figured out the problem, but not a solution. If conf[site][frontScriptName] = ' ' and htaccess-cleanUrl.dist is used then "never rewrite for existing files, directories and links" is true ... for modules such as Media2 and SiteMap a link / folder is created in the www folder, ie. www/media2 and www/sitemap. So when the url is http://www.acme.com/sitemap the RewriteRule? .* index.php rule is never fired, instead the contents of the sitemap folder are displayed.

09/30/09 12:11:27 changed by malber

Removing

    RewriteCond %{REQUEST_FILENAME} !-d

Fixes this problem, but I do not know if that will cause other issues.

10/02/09 01:48:16 changed by demian

interesting, let me give it a try. a reply is coming to your emails on ML, been quite tied up with projects.

02/09/10 13:36:20 changed by demian

  • milestone changed from 0.9.1 - polishing to 1.0.

02/26/13 12:30:44 changed by demian

  • milestone deleted.