Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5898)

Issue 4312049: Joomla master .htaccess - differences 2.3.a - 2.4.1

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by g1smd
Modified:
13 years, 1 month ago
Reviewers:
nikosdion
Base URL:
http://joomla-master-htaccess.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Based on the version 2.3 code originally found at: http://snipt.net/nikosdion/the-master-htaccess/ and now listed at: http://code.google.com/p/joomla-master-htaccess/source/browse/trunk/joomla-master-htaccess.txt?spec=svn2&r=2 The original file contains a number of syntax errors, several rules that can never work, and a number of expressions that can be more efficiently coded. Bugs and enhancements originally discussed at: http://forum.joomla.org/viewtopic.php?f=432&t=549841 Discussion also at: http://snipt.net/nikosdion/the-master-htaccess/ The new proposed file: http://snipt.net/g1smd/joomla-master-htaccess-file-proposed-v24-2011-03-24/ or at: http://code.google.com/p/joomla-master-htaccess/source/browse/trunk/joomla-master-htaccess.txt?spec=svn4&r=4 NOTE: this is not now the latest version of the file. Continued in: http://codereview.appspot.com/4290071/

Patch Set 1 #

Total comments: 93
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -148 lines) Patch
joomla-master-htaccess.txt View 7 chunks +154 lines, -148 lines 93 comments Download

Messages

Total messages: 2
g1smd
http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt File joomla-master-htaccess.txt (left): http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt#oldcode4 joomla-master-htaccess.txt:4: ## Version 2.2 - November 18th, 2010 Ver 2.2 ...
13 years, 1 month ago (2011-03-25 09:18:08 UTC) #1
g1smd
13 years, 1 month ago (2011-03-25 21:39:45 UTC) #2
http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt
File joomla-master-htaccess.txt (left):

http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt#oldco...
joomla-master-htaccess.txt:282: RewriteRule
^(images/stories/*\.(jpe[g,2]?|jpg|png|gif|bmp|css|js|swf|ico|htm[l]?))$ $1 [L]
The pattern "/stories/*\.(jpe" matches only when there is no  filename for the
image and either none, one or multiple slashes after "stories". That is, the URL
example.com/images/stories///////////////////.jpg DOES match this rule, but
example.com/images/stories/imagename.jpg does NOT.

http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt#oldco...
joomla-master-htaccess.txt:315: RewriteRule ^(xmlrpc/index\.php)$ $1 [L]
Comment says "allow plain xmlrpc/ directory" but code does not do that.

http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt#oldco...
joomla-master-htaccess.txt:365: RewriteCond %{query_string} \bviagra\b [NC,OR]
Duplicate entry.

http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt#oldco...
joomla-master-htaccess.txt:375: RewriteCond %{REQUEST_URI} !^/index.php
Literal periods in patterns must be escaped.

http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt
File joomla-master-htaccess.txt (right):

http://codereview.appspot.com/4312049/diff/1/joomla-master-htaccess.txt#newco...
joomla-master-htaccess.txt:331: RewriteRule ^xmlrpc/(index\.php)?$ - [L]
Code changed to now do what comment says it should do.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b