Welcome! Log In Create A New Profile

Advanced

WordPress MU rewrite rules

September 22, 2009 04:52AM
Hi

I use this rules with apache mod_rewrite


[quote=apache]
RewriteEngine On
RewriteBase /


#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
[/quote]


and this on nginx

[quote=nginx]
rewrite ^/(.*/)?files/$ index.php last;
rewrite ^/(.*/)?files/(.*) wp-content/blogs.php?file=$2 last;

if (!-e $request_filename) {
rewrite ^/([_0-9a-zA-Z-]+/)?(wp-.*) $2 last;
rewrite ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last;
rewrite ^/(.*)$ index.php last;
}
[/quote]

but, dont work fine.... any help?? THANKS!!!!!
Subject Author Posted

WordPress MU rewrite rules

pepejose September 22, 2009 04:52AM

Re: WordPress MU rewrite rules

pepejose October 08, 2009 10:46AM

Re: WordPress MU rewrite rules

Grzegorz Sienko October 08, 2009 03:42PM

Re: WordPress MU rewrite rules

edogawaconan October 08, 2009 11:04PM

Re: WordPress MU rewrite rules

pepejose October 09, 2009 03:14AM

Re: WordPress MU rewrite rules

edogawaconan October 09, 2009 02:36PM

Re: WordPress MU rewrite rules

Daniele Melosi October 20, 2009 10:10AM

Re: WordPress MU rewrite rules

edogawaconan October 20, 2009 10:54AM

Re: WordPress MU rewrite rules

Daniele Melosi October 21, 2009 04:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready