History of PrettyUrls

Differences from version 8 to 10



@@ -31,7 +31,7 @@

 
 this should be done for the / dir and your html dir such as /var/www/
 
-Note:
+!!! First note
 Depending on your web server configuration, the default supplied .htaccess files may not work. One thing to try is to comment out the "RewriteBase" line in the file. For example:
 
 {CODE source='Apache'}

@@ -41,6 +41,20 @@

 {CODE source='Apache'}
 # RewriteBase /wiki/
 {/CODE}
+
+!!! Second note
+There can be issues with ))mod_rewrite(( in apache when your pretty url partially matches a filename that already phisycally exists in the same directory and Option ))MultiViews(( is turned on. For example in Treasury package:
+
+{CODE source='Apache'}
+RewriteRule ^download/([0-9]+)?(\&.*)?$ download.php?content_id=$1$2 [L,QSA]{/CODE}
+Apache searches for a file ''download'' and it partially matches ''download.php''. Option ))MultiViews(( allows apache to reach ''download.php'' literally as ''download.php'' but also as ''download''. It happends before RewriteRule is applied, so in fact your request goes do ''download.php'' but because of ))MultiViews((, not mod_rewrite and therefore with no arguments.
+
+To solve this you have to turn off Option ))MutliViews(( in your apache configuration or in this directory in your .htaccess file:
+
+{CODE source='Apache'}
+Option -MutliViews
+RewriteRule ^download/([0-9]+)?(\&.*)?$ download.php?content_id=$1$2 [L,QSA]{/CODE}
+Information about apache's ))MultiViews(( can be found on [http://httpd.apache.org/docs/2.2/content-negotiation.html#page-header] and some blog posts that explain it are on [http://drupal.org/node/42987] and [http://www.gerd-riesselmann.net/archives/2005/04/beware-of-apaches-multiviews].
 
 
 !!See Also:
Page History
Date/CommentUserIPVersion
30 Jun 2008 (09:17 UTC)
Kozuch85.207.244.16010
Current • Source
mlpvolt69.195.4.528
View • Compare • Difference • Source
KainX12.203.189.347
View • Compare • Difference • Source
James Thompson64.65.89.2276
View • Compare • Difference • Source
xing194.152.164.454
View • Compare • Difference • Source
SEWilco207.195.192.93
View • Compare • Difference • Source
spiderr66.93.240.2042
View • Compare • Difference • Source