cobaltcat Posted May 1, 2009 Share Posted May 1, 2009 Any hints as to how I can redirect http://www.mydomain.com/index.php?id=153 to http://www.mydomain.com/index.php?id=38 using the .htaccess file? I can't get it to work. This is on a Linux server. Link to comment https://forums.phpfreaks.com/topic/156355-redirect-dynamic-page-using-htaccess/ Share on other sites More sharing options...
Ken2k7 Posted May 1, 2009 Share Posted May 1, 2009 Redirect 301 http://www.mydomain.com/index.php?id=153 http://www.mydomain.com/index.php?id=38 Not tested. Link to comment https://forums.phpfreaks.com/topic/156355-redirect-dynamic-page-using-htaccess/#findComment-823229 Share on other sites More sharing options...
cobaltcat Posted May 1, 2009 Author Share Posted May 1, 2009 Ken2k7 - Thanks for the reply, but that didn't work. Link to comment https://forums.phpfreaks.com/topic/156355-redirect-dynamic-page-using-htaccess/#findComment-823244 Share on other sites More sharing options...
Ken2k7 Posted May 1, 2009 Share Posted May 1, 2009 Something like this, you can simply Google it. It's usually faster than waiting for a reply. Try this: RewriteEngine on RewriteRule /index\.php\?id=153 http://www.mydomain.com/index.php?id=38 [R=301,L] Link to comment https://forums.phpfreaks.com/topic/156355-redirect-dynamic-page-using-htaccess/#findComment-823250 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.