Forum Moderators: coopster

Message Too Old, No Replies

wordpress mod rewrite problem

mod rewrite

         

jimdo

11:13 pm on Mar 18, 2008 (gmt 0)

10+ Year Member



I have a rewrite rule for wordpress that works fine on a linux/apache server where php is installed as a module but not on a server where php is installed as a cgi.

The idea is to rewrite a url like /page/abc/123/ to be run /page?p1=abc&p2=123. The rule is:

RewriteRule ^page/([^/]+)/([^/]+)/$ /index.php/page/?p1=$1&p2=$2/ [L]

This works just fine on the server with php installed as a module. It loads the appropiate wordpress page and passes in p1 & p2.

On a server with php installed as a cgi, it just runs index.php and does not pass anything in.

Anyone have any ideas?

phparion

10:25 am on Mar 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



shouldnt it be like

RewriteRule ^page/([^/]+)/([^/]+)/$ /index.php?p1=$1&p2=$2 [L]