Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule for two urls

         

Evolve123

2:23 am on Aug 27, 2008 (gmt 0)

10+ Year Member



Hello,

I have the following rewrite:

RewriteRule (.*)-(.*)\.php section.php?network=$1&page=$2

Problem.. I would like to use it in two instances as follows:

RewriteRule (.*)-(.*)\.php section.php?network=$1&page=$2
RewriteRule (.*)-(.*)\.php index.php?network=$1&page=$2

----------------------

It only rewrites the url within section.php, but does not rewrite it for index.php. How can I make it so it rewrites for both php pages the same url?

Thanks

Evolve123

12:38 pm on Aug 27, 2008 (gmt 0)

10+ Year Member



Bump.. need answer for this :)

g1smd

1:52 pm on Aug 27, 2008 (gmt 0)

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



Every URL will only match your first rule.

You need to make the URL different in some way (and change the first rule) such that those URLs that need to match the second rule, do not match the first rule.