vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO Total Support Team Launches DeskPro New vBSEO Discount Level for Network Builders vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Wordpress 301 Redirect Help Please

This is a discussion on Wordpress 301 Redirect Help Please within the General Discussion forums, part of the vBulletin SEO Discussion category; I need to change my url structure to include an id so I want to just do it the way ...

Go Back   vBulletin SEO Forums > vBulletin SEO Discussion > General Discussion

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 12-12-2006, 06:56 AM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,347
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
Wordpress 301 Redirect Help Please

I need to change my url structure to include an id so I want to just do it the way I should have done it when I started.

Right now I am simply using: %postname%

I want to change it to /topic-%year%%post_id%/

So the urls would go from /this-is-a-sweet-topic/

to /topic-2006123/

How would I 301 redirect the this-is-a-sweet-topic/ to the new url via .htaccess?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 12-12-2006, 07:59 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,597
I guess you will have to create one rewrite rule per post in this case:
Code:
RewriteRule ^this-is-a-sweet-topic/ http://www.domain.com/topic-2006123/ [L,R=301]
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 12-12-2006, 03:53 PM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,347
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
Thanks I just needed the correct rule to give me a start
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 12-12-2006, 04:59 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,540
didn't i tell you to do this? :P
Blogger Skills » Blog SEO Part 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 12-12-2006, 11:06 PM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,347
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
The following is not working:
Code:
RewriteRule ^ford-mustang-video-game/ http://www.mustangevolution.com/topic-5/ [L,R=301]
RewriteRule ^chip-foose-stallion-mustang/ http://www.mustangevolution.com/topic-6/ [L,R=301]
RewriteRule ^shelby-gt500-convertible/ http://www.mustangevolution.com/topic-7/ [L,R=301]
RewriteRule ^shelby-2005-cs6/ http://www.mustangevolution.com/topic-8/ [L,R=301]
RewriteRule ^2007-shelby-gt500/ http://www.mustangevolution.com/topic-9/ [L,R=301]
RewriteRule ^stockton-firm-faces-suit-ford-trademark-violation/ http://www.mustangevolution.com/topic-10/ [L,R=301]
RewriteRule ^shelby-mustang-gt500-prices/ http://www.mustangevolution.com/topic-11/ [L,R=301]
RewriteRule ^2005-rendered-mustang-t-tops/ http://www.mustangevolution.com/topic-12/ [L,R=301]
RewriteRule ^ford-bold-moves-gt500/ http://www.mustangevolution.com/topic-13/ [L,R=301]
RewriteRule ^2008-boss-mustang-return/ http://www.mustangevolution.com/topic-14/ [L,R=301]
RewriteRule ^retail-shelby-gt-h/ http://www.mustangevolution.com/topic-15/ [L,R=301]
RewriteRule ^2007-shelby-gt-mustang-information/ http://www.mustangevolution.com/topic-41/ [L,R=301]
RewriteRule ^the-legend-mustang/ http://www.mustangevolution.com/topic-55/ [L,R=301]
RewriteRule ^ford-mustangs-myspace/ http://www.mustangevolution.com/topic-59/ [L,R=301]
RewriteRule ^shelby-gt500-road-america/ http://www.mustangevolution.com/topic-61/ [L,R=301]
RewriteRule ^roush-427r-mustang/ http://www.mustangevolution.com/topic-64/ [L,R=301]
RewriteRule ^ford-bold-moves-street-racing-video-game/ http://www.mustangevolution.com/topic-68/ [L,R=301]
RewriteRule ^commercial-video-shelby-gt500-in-germany/ http://www.mustangevolution.com/topic-70/ [L,R=301]
RewriteRule ^vmptuning-gets-505-to-the-wheels-with-gt500/ http://www.mustangevolution.com/topic-72/ [L,R=301]
RewriteRule ^the-next-mustang-a-first-look-at-the-2009-ford-mustang/ http://www.mustangevolution.com/topic-81/ [L,R=301]
RewriteRule ^mustang-gt-520/ http://www.mustangevolution.com/topic-94/ [L,R=301]
RewriteRule ^saleen-2009-mustang-facelift/ http://www.mustangevolution.com/topic-99/ [L,R=301]
RewriteRule ^shelby-gt500-debuts-as-nascar-pace-car/ http://www.mustangevolution.com/topic-105/ [L,R=301]
RewriteRule ^ford-rolls-out-ford-mustang-for-sema-2006/ http://www.mustangevolution.com/topic-107/ [L,R=301]
RewriteRule ^boss-302-engine-back/ http://www.mustangevolution.com/topic-114/ [L,R=301]
RewriteRule ^sct-brings-next-generation-tuning-with-livewire/ http://www.mustangevolution.com/topic-120/ [L,R=301]
RewriteRule ^2010-mustang-wagon-speculated-by-german-magazine/ http://www.mustangevolution.com/topic-126/ [L,R=301]
RewriteRule ^giugiaro-2010-mustang-concept-picture/ http://www.mustangevolution.com/topic-129/ [L,R=301]
RewriteRule ^viva-la-mustang-ford-releases-giugiaro-mustang-information/ http://www.mustangevolution.com/topic-131/ [L,R=301]
RewriteRule ^shelby-gt-police-chase-commercial/ http://www.mustangevolution.com/topic-140/ [L,R=301]
RewriteRule ^bullitt-and-boss-mustang-to-return-in-late-2007/ http://www.mustangevolution.com/topic-141/ [L,R=301]
RewriteRule ^shelby-gt-mustang-production-starts-in-january/ http://www.mustangevolution.com/topic-142/ [L,R=301]
RewriteRule ^35-duratec-v-6-and-46-3-valve-v-8-engines-top-wards-10-best-engines/ http://www.mustangevolution.com/topic-143/ [L,R=301]
RewriteRule ^2007-mustang-meets-ipod/ http://www.mustangevolution.com/topic-97/ [L,R=301]
RewriteRule ^interview-with-doug-gaffka-on-designing-the-shelby-gt500/ http://www.mustangevolution.com/topic-51/ [L,R=301]
RewriteRule ^ford-mustang-sales-up-64-from-august-2005/ http://www.mustangevolution.com/topic-57/ [L,R=301]
All it does is take my to the mainpage and the url is to the old permalink
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 12-13-2006, 06:15 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,597
Is this full contents of your .htaccess? Didn't you forget to add "RewriteEngine on" to the top?
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 12-13-2006, 06:21 AM
BamaStangGuy's Avatar
Senior Member
vBSEO Pre-Release TeamBig Board Administrator
 
Real Name: Brent Wilson
Join Date: Aug 2005
Location: Huntsville, Alabama
Posts: 2,347
Send a message via AIM to BamaStangGuy Send a message via MSN to BamaStangGuy
Full content:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.mustangevolution\.com
RewriteRule ^(.*)$ http://www.mustangevolution.com/$1 [L,R=301]
# Redirect FeedBurner to your own Feed
RewriteBase /
RewriteRule ^feedburner_711296/?$ /feed/ [R,L]
RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# These Rules redirect all feed Traffic to FeedBurner
RewriteBase /
RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
RewriteRule ^(.*)$ http://feeds.feedburner.com/mustangnews [R,L]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ http://feeds.feedburner.com/mustangnews [R,L]
RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php http://feeds.feedburner.com/mustangnews [R,L]
# force trailing slash
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ /$1/ [R=301,L]
# These are the standard WordPress Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect FeedBurner to your own Feed
RewriteBase /
RewriteRule ^feedburner_711296/?$ /feed/ [R,L]
RewriteCond %{HTTP_USER_AGENT} ^FeedBurner.*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# These Rules redirect all feed Traffic to FeedBurner
RewriteBase /
RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
RewriteRule ^(.*)$ http://feeds.feedburner.com/mustangnews [R,L]
RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?/?$ http://feeds.feedburner.com/mustangnews [R,L]
RewriteRule ^wp-(feed|rdf|rss|rss2|atom).php http://feeds.feedburner.com/mustangnews [R,L]
# These are the standard WordPress Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Where should I place the new rules? Also this .htaccess looks bloated. Are there duplicates in there that should be?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 12-13-2006, 07:00 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,597
They should go right after "RewriteEngine On" line.

I guess that 2nd <IfModule mod_rewrite.c>...</IfModule> block is redundant
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Different 301 Redirect formats oddmusic General Discussion 12 03-16-2008 12:47 PM
301 fügt ?vbseourl= mit an Junior Deutsch 8 11-20-2006 02:07 PM
301 Redirect Original Content (posts) thecat Troubleshooting 2 10-04-2006 11:00 AM
Stuck setting up a 301 redirect Pixalo URL Rewrite Settings 3 06-06-2006 06:36 PM
301 redirect not working? googledave Troubleshooting 2 02-12-2006 09:37 PM


All times are GMT -4. The time now is 12:20 AM.


Powered by vBulletin Version 3.8.0 Beta 4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.