Welcome to WebmasterWorld Guest from 54.196.144.100

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

mod rewrite - Check Code

     

woldie

12:17 pm on Jan 30, 2005 (gmt 0)

10+ Year Member



Hi,

I'm trying to use mod rewrite to achieve the following:

FROM: [domain.com...]

TO: [domain.com...]

I've already written some code, but not quite sure if this is correct.

RewriteEngine On
RewriteRule ^/dir/([0-9]+)\/index.php
[domain.com...] [L]

Am I on the right track?

Cheers :o)

dcrombie

12:35 pm on Jan 30, 2005 (gmt 0)

10+ Year Member



This should work a bit better:

RewriteEngine On  
RewriteRule ^dir/([0-9]+)/index\.php /page.php?id=$1

;)

woldie

1:02 pm on Jan 30, 2005 (gmt 0)

10+ Year Member



Thanks dcrombie

Much appreciated for your help.

That works :o)