Help with rewrite rules for Wordpress MU

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
hyperial
-


Joined: 22 Aug 2007
Posts: 23

PostPosted: Tue Feb 12, 2008 10:47 pm    Post subject: Help with rewrite rules for Wordpress MU Reply with quote

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 View user's profile Send private message
hyperial
-


Joined: 22 Aug 2007
Posts: 23

PostPosted: Wed Feb 13, 2008 7:57 pm    Post subject: Re: Help with rewrite rules for Wordpress MU Reply with quote

After many more hour of trial and error. I fixed it! Yay!
Back to top View user's profile Send private message
hyperial
-


Joined: 22 Aug 2007
Posts: 23

PostPosted: Wed Feb 13, 2008 8:01 pm    Post subject: Solution. Reply with quote

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 View user's profile Send private message
ironspeeder
-


Joined: 29 Aug 2008
Posts: 3

PostPosted: Fri Aug 29, 2008 7:58 am    Post subject: Post subject: Solution addition Reply with quote

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 View user's profile Send private message
kartangle1
-


Joined: 15 Jul 2009
Posts: 2

PostPosted: Wed Jul 15, 2009 10:55 am    Post subject: Re: Help with rewrite rules for Wordpress MU Reply with quote

I really enjoy reading your post I really appreciate your help!
Back to top View user's profile Send private message
RedCabana
-


Joined: 14 Sep 2010
Posts: 2

PostPosted: Tue Sep 14, 2010 10:06 am    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group