Changes between Version 1 and Version 2 of Ticket #15311, comment 80
- Timestamp:
- 01/26/13 19:55:49 (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #15311, comment 80
v1 v2 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[...]. 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[...]. '' 2 2 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! 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...
