# Redirect for search results
# RewriteRule ^search-results/find-(.*)/all-words-(on|off)/page-
([0-9]+)/?$
# index.php?SearchResults&SearchString=$1&AllWords=$2&Page=$3 [L]
# RewriteRule ^search-results/find-?(.*)/all-words-(on|off)/?$
# index.php?SearchResults&SearchString=$1&AllWords=$2&Page=1 [L]
When I un comment the last four lines, I get server error 500. With
the lines commented I get no search results as I get my error page not
found message.
Any help greatfully received.
Steve
Wrong newsgroup. Try an Apache newsgroup, such as alt.apache.configuration.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
Thanks Jerry, posted this to both newsgroups at the same time as
wasn't sure which one to use.
Steve
But this IS alt.apache.configuration ?
--
Luuk
If you want 4 lines for readability fine, try
RewriteRule ^search-results/find-(.*)/all-words-(on|off)/page-([0-9]+)/?$ \
index.php?SearchResults&SearchString=$1&AllWords=$2&Page=$3 [L]
RewriteRule ^search-results/find-?(.*)/all-words-(on|off)/?$ \
index.php?SearchResults&SearchString=$1&AllWords=$2&Page=1 [L]
HansH
1. See Apache's error log for the exact error message.
2. You need to enable URL rewriting
RewriteEngine On
Please note that you want to use an Apache module called mod_rewrite.
It's not PHP and it's not htaccess.
--
-- http://alvaro.es - �lvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programaci�n web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Thanks for the advice. I put the lines over 2 lines instead of four
and it worked fine.
Steve