diff options
| author | Christian Fowler <spider@viovio.com> | 2008-04-14 04:06:35 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-04-14 04:06:35 +0000 |
| commit | 034acf99aef1e5cfc6332cd010730d2f66d4ef54 (patch) | |
| tree | 9cfcbce2ba8a16ef880b2ff9b2bcba58adbfe14d /.htaccess | |
| parent | 4bbfeffe4de811f106514527895853dfa49b4377 (diff) | |
| download | users-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-- | .htaccess | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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> |
