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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-05-2010, 09:22 AM   #1
The Dawg
Confirmed User
 
The Dawg's Avatar
 
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?

Last edited by The Dawg; 11-05-2010 at 09:23 AM..
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2010, 09:43 AM   #2
myneid
Confirmed User
 
myneid's Avatar
 
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
myneid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2010, 09:47 AM   #3
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
Quote:
Originally Posted by myneid View Post
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
Thanks Ive done it in the past redirecting old html pages to new pages within a script, but since WP has its own .htaccess to make the custom URLs I dont know how to edit it.

Even if I have to put a line for every post I'd do it.
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-06-2010, 07:51 AM   #4
Hentaikid
Confirmed User
 
Hentaikid's Avatar
 
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...
Hentaikid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.