Forum Moderators: coopster

Message Too Old, No Replies

Adding a query AFTER ".htm"

Tacking it on, tucking it in

         

Josefu

7:02 pm on Apr 19, 2005 (gmt 0)

10+ Year Member



I've been mulling and reading and mulling and reading and mulling again over this one for the best part of an afternoon.

All my in-site links are set up (with the help of Apache rewriteRule) as "clean" queries and links, but I've run into a need to deviate "back" to a query string add-on. I've managed to compile and display an alphebetical index of all historical terms appearing in my site, and I've arranged it so that the term clicked upon will be highlighted once the page it's linked to is loaded, but I don't want to "hard-link" them for fear of too much multiple content. What I mean is, if I do a /path/to/the/page/termToHighlight.htm the SE would think it's a unique page.

yet when I try to do a rewriteRule (simplified) :
^/(.*)/(.*)/(.*)\.htm?query3=(.*)$ $1.php?query1=$2&query2=$3query3=$4

...it ignores the query after the .htm

Does anyone know of any way around this? I'm stuck.

Thanks in advance for any help at all.

[edited by: Josefu at 7:19 pm (utc) on April 19, 2005]

jusdrum

7:14 pm on Apr 19, 2005 (gmt 0)

10+ Year Member



Did mis-type this in the post, or in your actual rules?

(*.)
should be
(.*)

Josefu

7:16 pm on Apr 19, 2005 (gmt 0)

10+ Year Member



Yes I misspelled. Sorry : )