Hi,
I'm trying to use rewrite rules in my .htaccess to take user from an old link to a temporary new link (it's not a permanent new site, so I don't want a 301 redirect)
The following works for all the html pages and also the php pages without parameters, but it doesn't process the last example - a php page with parameters. Note that the directory structure is different on the new domain, but the parameters of the url are exactly the same. Is there something I can do with regular expressions to enable to rewriterule? I don't have too much experience writing my own reg expressions, so I'm not sure where to begin. Thanks!
My .htaccess file:
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Options -MultiViews
Options +FollowSymlinks
RewriteEngine on
RewriteRule invest/index.html http://example.org/new_file_structure/invest/index.html
RewriteRule index-old.html http://example.org/index.php
RewriteRule invest/i2/ap/row_I2_i_ap1.php http://example.org/new_file_structure/i2/ap/row_I2_i_ap1.php
##The following doesn't work:
RewriteRule subpages/view.php?d=i1_014 http://example.org/2010/view.php?d=i1_014
Thanks, Jen