Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-17-2011, 02:28 AM   PM User | #1
Xibe
New Coder

 
Join Date: Nov 2005
Posts: 66
Thanks: 8
Thanked 0 Times in 0 Posts
Xibe is an unknown quantity at this point
.htaccess 301 Redirects with Dynamic URL

I have this:
Code:
http://www.example.com/toolkits.php?t=15
And I need it to be 301 redirected to:
Code:
http://www.example.com/toolkits/grammar-toolkit.html
How can I achieve this in my .htaccess?

Thank you for your help! Desperately needed!
Xibe is offline   Reply With Quote
Old 01-17-2011, 04:36 PM   PM User | #2
poyzn
Regular Coder

 
poyzn's Avatar
 
Join Date: Nov 2010
Posts: 265
Thanks: 2
Thanked 61 Times in 61 Posts
poyzn is on a distinguished road
try this code
Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^\/toolkits\.php\?t=15$
RewriteRule . /toolkits/grammar-toolkit.html [L,R=301]
__________________
Ushousebuilders.com
poyzn is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:51 AM.


Advertisement
Log in to turn off these ads.