Web Servers on Unix and Linux - Mod Rewrite - .htaccess failing periodically

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > September 2006 > Mod Rewrite - .htaccess failing periodically





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mod Rewrite - .htaccess failing periodically
JSOUL

2006-09-05, 1:23 am

I can't seem to explain why the .htaccess file that I had setup and
worked at http://www.thelaw.com/dictionary no longer seems to work to
produce SEF URLs for our law dictonary. An example of this not working
is at http://www.thelaw.com/bouvdict/ which seems to spit back a 404
and take the user to the home page (we'll be creating new custom 404s
shortly.) Now it did work at some point when we first installed it.
Suddently it no longer functioned and even clean installs to new
directories didn't seem to work.

Now the home page seems to function. But trying to click on individual
links of letters doesn't seem to work. The file is listed below. I'm
wondering whether another .htaccess file that is placed in my root
directory may be tinkering with this one. It was working fine for a
while and coexisting. Tips would be wonderful if you have them. Thank
you!

## Uncomment to disable annoying 404-pages
#ErrorDocument 404 /
#ErrorDocument 403 /

DirectoryIndex index.php index.html index.htm

## Uncomment to disable charset encoding for Russian Apache
#CharsetDisable On

## mod_rewrite configuration
RewriteEngine on

RewriteRule ^[a-zA-Z]$ /display.php?action=search&by=$0
RewriteRule ^([a-zA-Z])\/$ /$1 [R]

RewriteRule ^([A-Z]+)([a-z)]+)([0-9)]+)\.html$
/display.php?action=search&by=$1&nr_page=$3

RewriteRule ^([^/]+)(.html)$ /display.php?action=show&word=$1

RewriteRule ^admin$ /$0.php
RewriteRule ^(admin)\/$ /$1 [R]

#Options -Indexes IncludesNOEXEC FollowSymLinks
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com