To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #408 (accepted defect)

Opened 21 months ago

Last modified 13 months ago

Symfony formats won't work with default Apostrophe's .htaccess file

Reported by: alejandrogarcia Owned by: tboutell
Priority: minor Milestone: 1.5.2
Component: apostrophePlugin Version: 1.5
Keywords: htaccess Cc: team@…
Symfony version: 1.4

Description

There comes with Apostrophe's sandbox a .htacces file in the web/ directory that uncomments three lines that are commented in Symfony's default .htaccess. Those are lines 23, 24 and 25 in Apostrophe's .htaccess.

  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

These three lines uncommented makes it impossible to use Symfony formats (ie, URLs ending in .xml or .json), you get a web server's 404 error. Are these uncommented for any specific functionality in Apostrophe? I enclose a patch (please check if its first two lines are OK, it's the first patch I made).

Change History

Changed 21 months ago by boutell

  • status changed from new to accepted

Hmm. Have you verified that this doesn't break the rendering of images in our media repository? Try adding some images to the media area, make sure they show up there and in slots. I think you're probably right that we don't need this in .htaccess and it could needlessly break files of other formats. However I am also scratching my head because we have these settings on our demo site and the favicon is working. How can favicon.ico work if this kills all URLs that end in dot-something other than html?

Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell

Changed 13 months ago by johnnyoffline

  • cc team@… added
  • keywords htaccess added
  • version changed from 1.0 to 1.5
  • milestone set to 1.5.1

Update or close this ticket

Note: See TracTickets for help on using tickets.