packages: wordpress/apache.conf - add rewrite rules (old change)

glen glen at pld-linux.org
Wed Sep 8 15:54:39 CEST 2010


Author: glen                         Date: Wed Sep  8 13:54:39 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add rewrite rules (old change)

---- Files affected:
packages/wordpress:
   apache.conf (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/wordpress/apache.conf
diff -u packages/wordpress/apache.conf:1.3 packages/wordpress/apache.conf:1.4
--- packages/wordpress/apache.conf:1.3	Wed Apr  7 14:26:13 2010
+++ packages/wordpress/apache.conf	Wed Sep  8 15:54:34 2010
@@ -1,6 +1,16 @@
-Alias /wordpress	 /usr/share/wordpress
+Alias /wordpress /usr/share/wordpress
 
 <Directory /usr/share/wordpress>
+	Allow from all
 	php_admin_flag engine on
 	php_admin_value open_basedir "/usr/share/wordpress:/etc/webapps/wordpress"
+
+	<IfModule mod_rewrite.c>
+		Options +FollowSymLinks
+		RewriteEngine On
+		RewriteBase /wordpress/
+		RewriteCond %{REQUEST_FILENAME} !-f
+		RewriteCond %{REQUEST_FILENAME} !-d
+		RewriteRule . /wordpress/index.php [L]
+	</IfModule>
 </Directory>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/wordpress/apache.conf?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list