...

View Full Version : .htaccess 301 Redirects with Dynamic URL



Xibe
01-17-2011, 03:28 AM
I have this:

http://www.example.com/toolkits.php?t=15

And I need it to be 301 redirected to:

http://www.example.com/toolkits/grammar-toolkit.html

How can I achieve this in my .htaccess?

Thank you for your help! Desperately needed!

poyzn
01-17-2011, 05:36 PM
try this code


RewriteEngine On
RewriteCond %{REQUEST_URI} ^\/toolkits\.php\?t=15$
RewriteRule . /toolkits/grammar-toolkit.html [L,R=301]



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum