Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user_documentation:use:features:new:htaccess_and_hotlink_in_2.4 [2012/05/18 16:22]
mistic100
user_documentation:use:features:new:htaccess_and_hotlink_in_2.4 [2013/03/07 14:03] (current)
Line 44: Line 44:
   - If it's a previously existing file, be careful there is not **RewriteEngine off** into it, otherwise you have to modify it into **RewriteEngine on** or the following will break your website.   - If it's a previously existing file, be careful there is not **RewriteEngine off** into it, otherwise you have to modify it into **RewriteEngine on** or the following will break your website.
   - Add it the **.htaccess** file these lines with some modifications :   - Add it the **.htaccess** file these lines with some modifications :
-    * on lines 4 and 5 modify **thumbnail** by the content of your local **$conf['dir_thumbnail']** if you have one +    * on lines 5 and 6 modify **thumbnail** by the content of your local **$conf['dir_thumbnail']** if you have one 
-    * on lines 4 and 5 modify **TN\-** by the content of your local **$conf['prefix_thumbnail']** if you have one +    * on lines 5 and 6 modify **TN\-** by the content of your local **$conf['prefix_thumbnail']** if you have one 
-    * <wrap hi>on lines 12 and 14 modify **localhost** by your hostname without //http// or //www//</wrap> (example: **my\-website.com**) +    * <wrap hi>on lines 13 and 15 modify **localhost** by your hostname without //http// or //www//</wrap> (example: **my\-website\.com**) 
-    * CAUTION: if you have hyphens in all these values prepend them with a anti-slash (**TN-** becomes **TN\-**+    * CAUTION: if you have hyphens in all these values prepend them with a anti-slash (**TN-** becomes **TN\-**), you must also escape dots
     <file>     <file>
 +<IfModule mod_rewrite.c>
 RewriteEngine on RewriteEngine on
  
Line 64: Line 65:
 RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?localhost/.*$ [NC]
 RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L] RewriteRule ^galleries(.*)/(.*)\.([a-z0-9]{3,4})$ i.php?/galleries/$1/$2-me.$3 [L]
 +</IfModule>
 </file> </file>
   - Now old hotlinks should we correctly redirected   - Now old hotlinks should we correctly redirected
 
Back to top
user_documentation/use/features/new/htaccess_and_hotlink_in_2.4.1337358160.txt.gz · Last modified: 2012/05/18 16:22 by mistic100
 
 
github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact