WordPress.org

Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #15311, comment 80


Ignore:
Timestamp:
01/26/13 20:04:05 (18 months ago)
Author:
esauvisky
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15311, comment 80

    v2 v3  
    1 ''Guys, I have a RewriteRule on .htaccess from '''/''' to '''/wordpress''' ({{{RewriteRule (.*) /wordpress/$1 [L]}}}) for stripping ''/wordpress'' from my urls, and I was getting the error No such file or directory because '''$filepath''' was '''wordpress/'''wp-content/uploads[...]. '' 
     1Is it possible to apply ''vt_resize'' automatically to every image that is displayed with lower dimensions than the original one? 
    22 
    3 ''I fixed it with a disgusting '''{{{preg_replace('/^.wordpress\//')}}}''', but I would like to know if there's a better way of doing it. Thanks!'' 
    4  
    5 '''EDIT: NEVERMIND. Truly fixed it without using .htaccess, by copying index.php and moving wp_config.php to / as [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory explained here].''' Sorry for bothering... 
     3For example, I have a 500x500px image, but I've used it with ''width:300px; height:300px''. How can I automatically scale it without having to manually call ''vt_resize''?