![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
.htaccess Wordpress Migration Help
Hello All -
I am moving one of my blogs to WP and I want to use a new type of URL structure. The old blog has URLs like this: domain.com/blog/?itemid=1021 WP has URLs like this: domain.com/blog/2011-audi-r8-spyder/ *Those two URLs point to the same entry. How can I use Condition/Rewrite Rules to redirect to the new permanent URLs? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2003
Location: Los Angeles
Posts: 736
|
if you migrated from an old blog system to wordpress and want the old links to still work,
it will be a bit difficult you would need to redirect the old link so anything that ended in ?itemid=xxxx to a php or whatever program that would need to know which old blog entry relates to the new wordpress entry
__________________
Tanguy 0x7a69 inc. Programmer/President/CEO http://www.0x7a69.com A Leader in Programming since 1996 PHP, Ruby on Rails, MySQL, PCI DSS, and any Technical Consulting |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Quote:
Even if I have to put a line for every post I'd do it. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2002
Posts: 1,249
|
Actually wordpress shortlinks are numeric too... so you have domain.com/?p=1021 as a valid alternate url for that post (It's under show shortlink in the post form) so if you migrate and keep the numeric values for the posts it should redirect them... possibly. I know with nice urls if the url is wrong it will try to send you to the closest titled post...
|
![]() |
![]() ![]() ![]() ![]() ![]() |