[jobberbase] r428 committed - .htaccess files for Apache 1.3

9 views
Skip to first unread message

codesite...@google.com

unread,
Feb 8, 2010, 12:00:23 PM2/8/10
to jobbe...@googlegroups.com
Revision: 428
Author: linksClm
Date: Mon Feb 8 08:56:19 2010
Log: .htaccess files for Apache 1.3
http://code.google.com/p/jobberbase/source/detail?r=428

Added:
/trunk/public/apache-1.3
/trunk/public/apache-1.3/.htaccess
/trunk/public/apache-1.3/.htaccess-admin
/trunk/public/apache-1.3/readme.txt

=======================================
--- /dev/null
+++ /trunk/public/apache-1.3/.htaccess Mon Feb 8 08:56:19 2010
@@ -0,0 +1,20 @@
+AddType application/x-httpd-php5 .php
+
+RewriteEngine on
+Options +FollowSymlinks
+
+RewriteBase /
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/$ index.php?page=$1 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/([^/]+)/$ index.php?page=$1&id=$2 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$
index.php?page=$1&id=$2&extra=$3&referer=$4 [L]
+
+ErrorDocument 404 /page-unavailable/
=======================================
--- /dev/null
+++ /trunk/public/apache-1.3/.htaccess-admin Mon Feb 8 08:56:19 2010
@@ -0,0 +1,21 @@
+AddType application/x-httpd-php5 .php
+
+RewriteEngine on
+Options +FollowSymlinks
+
+RewriteBase /admin
+
+#RewriteCond %{REQUEST_FILENAME} !-f
+#RewriteCond %{REQUEST_FILENAME} !-d
+#RewriteRule . index.php [L]
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/$ index.php?page=$1 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/([^/]+)/$ index.php?page=$1&id=$2 [L]
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ index.php?page=$1&id=$2&extra=$3 [L]
+
+ErrorDocument 404 /page-unavailable/
=======================================
--- /dev/null
+++ /trunk/public/apache-1.3/readme.txt Mon Feb 8 08:56:19 2010
@@ -0,0 +1,5 @@
+When running under Apache 1.3, you *must* use the .htaccess files found in
this folder.
+
+- copy .htaccess to your JobberBase root folder
+(an .htaccess file already exists in the root folder but you can safely
overwrite it)
+- copy .htaccess-admin to your JobberBase "admin" folder and rename it
to .htaccess

Reply all
Reply to author
Forward
0 new messages