Forum Moderators: phranque

Message Too Old, No Replies

Permanent Redirect Question

dynamic to dynamic (same page)

         

petra

3:12 pm on Jan 5, 2007 (gmt 0)

10+ Year Member



I'm trying to Redirect one dynamic page to another dynamic page (both pages are the same id in the database. Both pages are also mod rewritten to look static.

the htaccess code below is not working.

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/$ /article1.php?dynamic-keyword=$1&id=$2 [L]
RedirectMatch permanent ^http://mysite.com/dynamic-title/dynamic-id/$http://mysite.com/dynamic-keyword/dynamic-id/

any tips?

Many thanks!

jdMorgan

5:11 pm on Jan 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A couple of tips:

There's a missing space after the pattern in the RedirectMatch line

Use mod_rewrite for both rewrites if you wish to control execution order.

Jim