Changeset 15178


Ignore:
Timestamp:
May 21, 2012, 12:33:43 PM (12 years ago)
Author:
mistic100
Message:

multisize hotlinks and upgrade, add <IfModule mod_rewrite.c> to htaccess content

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/db/121-database.php

    r15128 r15178  
    6363  else
    6464  {
     65    $content.= '
     66<IfModule mod_rewrite.c>';
     67
    6568    if (strpos($content, 'RewriteEngine on') === false)
    6669    {
     
    9295RewriteRule ^upload/(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/upload/$1/$2-me.$3 [L]
    9396RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?'.preg_quote($_SERVER['SERVER_NAME']).'/.*$ [NC]
    94 RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L]';
     97RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L]
     98</IfModule>';
    9599   
    96100    file_put_contents($htaccess, $content);
Note: See TracChangeset for help on using the changeset viewer.