From 29712389b77b1280c644b00fe4e3259c4233a757 Mon Sep 17 00:00:00 2001 From: Bret McMillan Date: Tue, 3 Jun 2008 11:36:22 -0400 Subject: clean baseline for fedora source --- README.fedora | 9 +++++++++ htaccess.dist | 32 ++++++-------------------------- wordpress-mu-httpd-conf | 25 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 26 deletions(-) create mode 100644 README.fedora create mode 100644 wordpress-mu-httpd-conf diff --git a/README.fedora b/README.fedora new file mode 100644 index 0000000..61b32ec --- /dev/null +++ b/README.fedora @@ -0,0 +1,9 @@ +Fedora-specific packaging notes: + +* WordPress-MU is installed by default to something like: + www.foo.com/wordpress-mu/ + +* the content of htaccess.dist has been ported to a conf.d-compatible config file + +* if you utilize SSL, please review http://codex.wordpress.org/Administration_Over_SSL + diff --git a/htaccess.dist b/htaccess.dist index a10abfe..0c5a33a 100644 --- a/htaccess.dist +++ b/htaccess.dist @@ -1,26 +1,6 @@ -RewriteEngine On -RewriteBase BASE/ - -#uploaded files -RewriteRule ^(.*/)?files/$ index.php [L] -RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* -RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L] - -# add a trailing slash to /wp-admin -RewriteCond %{REQUEST_URI} ^.*/wp-admin$ -RewriteRule ^(.+)$ $1/ [R=301,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] - - - -SecFilterEngine Off -SecFilterScanPOST Off - - - +# NOTICE: contents moved to wordpress-mu-httpd-conf +# +# That file gets dropped into /etc/httpd/conf.d/wordpress-mu.conf +# +# Need to keep this here so that wpmu's current installer still works, +# and so that rpmlint isn't unhappy w/ an empty file. diff --git a/wordpress-mu-httpd-conf b/wordpress-mu-httpd-conf new file mode 100644 index 0000000..49685e8 --- /dev/null +++ b/wordpress-mu-httpd-conf @@ -0,0 +1,25 @@ +Alias /wordpress-mu /usr/share/wordpress-mu + + + AllowOverride Options + RewriteEngine On + + RewriteBase /wordpress-mu/ + + #uploaded files + RewriteRule ^(.*/)?files/$ index.php [L] + RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* + RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L] + + # add a trailing slash to /wp-admin + RewriteCond %{REQUEST_URI} ^.*/wp-admin$ + RewriteRule ^(.+)$ $1/ [R=301,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] + + -- cgit