summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-04-14 04:06:35 +0000
committerChristian Fowler <spider@viovio.com>2008-04-14 04:06:35 +0000
commit034acf99aef1e5cfc6332cd010730d2f66d4ef54 (patch)
tree9cfcbce2ba8a16ef880b2ff9b2bcba58adbfe14d /.htaccess
parent4bbfeffe4de811f106514527895853dfa49b4377 (diff)
downloadusers-034acf99aef1e5cfc6332cd010730d2f66d4ef54.tar.gz
users-034acf99aef1e5cfc6332cd010730d2f66d4ef54.tar.bz2
users-034acf99aef1e5cfc6332cd010730d2f66d4ef54.zip
remove \. from regex since it catches actual files. try to catch that rewrite, but cannot get it working. left code that works in http.conf commented out
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess11
1 files changed, 9 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess
index 57a5dde..8d9f070 100644
--- a/.htaccess
+++ b/.htaccess
@@ -2,6 +2,13 @@
RewriteEngine on
# Uncomment this if mod_rewrites are not working for you. some hosting services have cranky mod_rewrite
# RewriteBase /users/
- RewriteRule ^view/([-A-Za-z0-9_\.]+)$ index.php?home=$1 [L,QSA]
- RewriteRule ^([-A-Za-z0-9_\.]+)$ index.php?home=$1 [L,QSA]
+
+# These should pass existing files on through, but do not for some reason. needs to be debugged,
+# and then \. can be added to regex's below
+# RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME} -f [OR]
+# RewriteCond %{DOCUMENT_ROOT}%{SCRIPT_FILENAME}/index.php -f
+# RewriteRule ^/.* - [L]
+
+ RewriteRule ^view/([-A-Za-z0-9_]+)$ index.php?home=$1 [L,QSA]
+ RewriteRule ^([-A-Za-z0-9_]+)$ index.php?home=$1 [L,QSA]
</IfModule>