Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 09-08-2009, 08:32 AM   #1
Senior Warrior Member
War Room Member
 
Join Date: Jul 2008
Location: Location, Location.
Posts: 2,066
Thanks: 246
Thanked 446 Times in 266 Posts
Default Wordpress paths Problem..

Hi

If we change from a post format of something like

www.domain.com/catagory/date/postname

To

www.domain.com/postname

Is there anyway to make it so the old links redirect to where the new URL ?
SimonHarrison is offline   Reply With Quote
Old 09-08-2009, 05:52 PM   #2
Senior Warrior Member
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1
Thanks: 759
Thanked 724 Times in 505 Posts
Default Re: Wordpress paths Problem..

Hi Simon

I think that the best way would be to modify your .htaccess file with a line like this:

Code:
Redirect 301 /catagory/date/postname http:/ www.domain.com/postname
If you don't have access to .htaccess you could put a static PHP page at www.domain.com/catagory/date/postname/index.php and use a redirect to send traffic to the new page:

Code:
<?php
header( 'Location: www.domain.com/postname' ) ;
?>
One of these should do the trick!

Best of luck, please let me know if you need any assistance

Bill
mywebwork is offline   Reply With Quote
Old 09-08-2009, 06:28 PM   #3
Advanced Warrior
 
Abledragon's Avatar
 
Join Date: May 2007
Location: Hong Kong.
Posts: 960
Thanks: 3
Thanked 173 Times in 153 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to Abledragon
Default Re: Wordpress paths Problem..

Simon, hi,

WordPress attempts to do the .htaccess update when you change permalinks - if it can't access your .htaccess file for any reason it will give you the code with an instruction to paste it into the file.

After saving your updates be sure to check for a message that WP will give you if it has problems.

I also use the Redirection plugin, but that's belt and braces really.

Cheers,

Martin.

Abledragon is offline   Reply With Quote
Old 09-09-2009, 02:39 AM   #4
Senior Warrior Member
War Room Member
 
Join Date: Jul 2008
Location: Location, Location.
Posts: 2,066
Thanks: 246
Thanked 446 Times in 266 Posts
Default Re: Wordpress paths Problem..

Thanking you both, I'll pass this on to my coder.
SimonHarrison is offline   Reply With Quote
Old 09-09-2009, 02:36 PM   #5
Advanced Warrior
 
Join Date: Apr 2005
Location: Canada
Posts: 904
Thanks: 0
Thanked 81 Times in 68 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress paths Problem..

Simon there is also a plugin that will redirect Permalink Redirect WordPress Plugin | SYP

http://www.thecopywriterwhisperer.com/ Never underestimate the power of words! Day!http://www.directresponsepublishing.com/ Get my FREE Wordpress plugins
http://www.affiliateorganizer.com/ Organize your entire online business - Super affiliates give it the thumbs up!
JonMills is offline   Reply With Quote
Old 09-22-2009, 01:53 PM   #6
Advanced Warrior
War Room Member
 
warrich's Avatar
 
Join Date: Sep 2009
Posts: 653
Thanks: 2
Thanked 27 Times in 24 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Yahoo to warrich Send a message via Skype™ to warrich
Default Re: Wordpress paths Problem..

use can use 301 redirect rule in .htaccess file only in linux hosting

warrich is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
paths, problem, wordpress

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 07:38 AM.