Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite trouble

         

Jesse_Smith

11:34 pm on Jul 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On my server this works fine, but on another webmasters server that I'm helping to get working, it doesn't work too well. This script uses web services from another web site, and on his site none of the info from that web site shows up, just the stuff from the script. Should anything be changed in this? (In the .htaccess file it only has the Rewrite lines.)

RewriteEngine on
RewriteBase /cgi-bin/

RewriteRule ^script\-input_mode\-(.*)\-input_page\-(.*)\-input_id\-(.*).html$ script.cgi?input_mode=$1&input_page=$2&input_id=$3

RewriteRule ^script\-input_mode\-(.*)\-input_id\-(.*).html$ script.cgi?input_mode=$1&input_id=$2

script-input_mode-books-input_id-2.html Doesn't bring the content from web services site.
script.cgi?input_mode=books&input_id=2 Works

RewriteRule ^script\-input_mode\-(.*).html$ script.cgi?input_mode=$1

script-input_mode-books.html

RewriteRule ^script\-input_item\-(.*)\-input_search_type\-AsinSearch.html$ script.cgi?input_item=$1&input_search_type=AsinSearch

script.cgi?input_item=0743222245&input_search_type=AsinSearch Works (Original script URL)
script-input_item-0743222245-input_search_type-AsinSearch.html Doesn't work too well.

RewriteRule ^script.html$ script.cgi

hakre

1:58 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi Jesse_Smith,

RewriteRule ^script\-input_mode\-(.*)\-input_id\-(.*).html$ script.cgi?input_mode=$1&input_id=$2

script-input_mode-books-input_id-2.html Doesn't bring the content from web services site.
script.cgi?input_mode=books&input_id=2 Works

you're escaping the - chars (\-), but i think this is not necessary. please test against

script\-input_mode\-books\-input_id-2.html
if this is working.

give it a try, the other problem should be based on the same thing.

- hakre.

gargonzo

7:35 pm on Jul 15, 2003 (gmt 0)

10+ Year Member



nope :) anyone else have any ideas.. not working :(

garz