War Room

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

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 09-08-2009, 08:32 AM   #1
Advanced Warrior
War Room Member
 
SimonHarrison's Avatar
 
Join Date: Jul 2008
Location: All Over The World.
Posts: 899
Thanks: 71
Thanked 117 Times in 77 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 ?

Sig Smig - I'm selling nowt.
SimonHarrison is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-08-2009, 05:52 PM   #2
Advanced Warrior
War Room Member
 
mywebwork's Avatar
 
Join Date: Sep 2008
Location: Honolulu, Hawaii, USA (Currently in Montreal Canada)
Posts: 815
Blog Entries: 1
Thanks: 138
Thanked 217 Times in 146 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to mywebwork
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to mywebwork For This Useful Post:
Old 09-08-2009, 06:28 PM   #3
HyperActive Warrior
 
Abledragon's Avatar
 
Join Date: May 2007
Location: Hong Kong.
Posts: 442
Thanks: 0
Thanked 48 Times in 43 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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to Abledragon For This Useful Post:
Old 09-09-2009, 02:39 AM   #4
Advanced Warrior
War Room Member
 
SimonHarrison's Avatar
 
Join Date: Jul 2008
Location: All Over The World.
Posts: 899
Thanks: 71
Thanked 117 Times in 77 Posts
Default Re: Wordpress paths Problem..

Thanking you both, I'll pass this on to my coder.

Sig Smig - I'm selling nowt.
SimonHarrison is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-09-2009, 02:36 PM   #5
HyperActive Warrior
 
JonMills's Avatar
 
Join Date: Apr 2005
Location: Canada
Posts: 449
Thanks: 0
Thanked 20 Times in 20 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

www.theaffiliateentrepreneur.com Affiliate Course, Custom Bonuses and 3 Live Examples

www.affiliateorganizer.com Version 2.0 for all online marketers!

www.affiliatebusinessadvisor.com - When more than your mortgage depends on it working
JonMills is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-22-2009, 01:53 PM   #6
HyperActive Warrior
War Room Member
 
warrich's Avatar
 
Join Date: Sep 2009
Location: warrichpk@gmail.com
Posts: 171
Thanks: 0
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via MSN to warrich Send a message via Yahoo to warrich
Default Re: Wordpress paths Problem..

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

warrich is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 02:25 PM.