- Total Members: 263,786
- Threads: 454,030
- Posts: 1,062,515
Great community. Great ideas.
Welcome to SEOChat, a community dedicated to helping beginners and professionals alike in improving their Search Engine Optimization knowledge. Sign up today to gain access to the combined insight of tens of thousands of members.
-
Jan 15th, 2013, 11:45 AM
#1
.htaccess Redirect Problem
Hey guys,
New to SEO and redirecting using .htaccess. After googling the problem. I can't find a way to redirect my php variable (GET) files to a new permanent (301) link. Any help would be appreciated. Thanks!
I wanna 301 redirect:
www.mysite.com/folder/item_old.php?pid=apple
to
www.mysite.com/folder/item_new.php?pid=1
Is this even possible? Can it be redirected manually for each link considering the variables are different?
-
Jan 15th, 2013, 12:06 PM
#2
Sounds like you need a conditional rewrite.
You can do a single 301 redirect for each case, but it would be much more efficient to do a conditional rewrite.
The code you will use depends a lot on your old and new structure.
-
Jan 15th, 2013, 12:32 PM
#3
Tstolber,
I don't mind doing a single redirect for each case, but when i try it, it doesn't work.
Here is what I tried:
redirect 301 /folder/item_old.php?pid=apple http://www.mysite.com/folder/item_new.php?pid=1
any ideas?
-
Jan 15th, 2013, 01:53 PM
#4
Similar Threads
-
By tonynoriega in forum Google Optimization
Replies: 4
Last Post: Jul 7th, 2006, 03:43 PM
-
By SEO-2005 in forum Search Engine Optimization
Replies: 8
Last Post: Dec 15th, 2005, 01:59 AM
-
By squize in forum Search Engine Optimization
Replies: 10
Last Post: May 1st, 2005, 04:33 PM
-
By eclipse in forum Web Design, Coding and Programming
Replies: 9
Last Post: Oct 24th, 2004, 03:01 AM