View previous topic :: View next topic |
Author |
Message |
hyperial -
Joined: 22 Aug 2007 Posts: 23
|
Posted: Tue Feb 12, 2008 10:47 pm Post subject: Help with rewrite rules for Wordpress MU |
|
|
Having some problems with my image paths when uploading them... There are these two lines in the .htaccess file that deals with uploaded files...
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
Can someone assist in translating them to Abyss rules?
I tried to do it via the support section and got aggravated.
Last edited by hyperial on Wed Feb 13, 2008 8:16 pm; edited 1 time in total |
|
Back to top |
|
|
hyperial -
Joined: 22 Aug 2007 Posts: 23
|
Posted: Wed Feb 13, 2008 7:57 pm Post subject: Re: Help with rewrite rules for Wordpress MU |
|
|
After many more hour of trial and error. I fixed it! Yay! |
|
Back to top |
|
|
hyperial -
Joined: 22 Aug 2007 Posts: 23
|
Posted: Wed Feb 13, 2008 8:01 pm Post subject: Solution. |
|
|
I only ended up using the second rule and it works fine.
For anyone who ever may need it for WP MU, here goes...
Code: |
1. Virtual Path Regular Expression: ^(.*/)?files/(.*)
2. Uncheck Case sensitive
3. No conditions
4. I kept "Apply to subrequests too" checked
5. "Perform an internal redirection"
6. Redirect to: /wp-content/blogs.php?file=$2
7. I unchecked next two boxes
8. Stop Matching
|
|
|
Back to top |
|
|
ironspeeder -
Joined: 29 Aug 2008 Posts: 3
|
Posted: Fri Aug 29, 2008 7:58 am Post subject: Post subject: Solution addition |
|
|
Your solution really helped but I changed your item 5 because it did not work to:
/index.php?file=$2
I really appreciate your help! |
|
Back to top |
|
|
kartangle1 -
Joined: 15 Jul 2009 Posts: 2
|
Posted: Wed Jul 15, 2009 10:55 am Post subject: Re: Help with rewrite rules for Wordpress MU |
|
|
I really enjoy reading your post I really appreciate your help! |
|
Back to top |
|
|
RedCabana -
Joined: 14 Sep 2010 Posts: 2
|
Posted: Tue Sep 14, 2010 10:06 am Post subject: |
|
|
Thanks for answering the problem. I am also having similar problem with my wordpress site and now I solved it through this. |
|
Back to top |
|
|
|