vBulletin Search Engine Optimization
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 ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| ||||
| ||||
| 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? |
|
#2
| ||||
| ||||
|
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. |
|
#3
| ||||
| ||||
|
Thanks I just needed the correct rule to give me a start
|
|
#4
| ||||
| ||||
|
didn't i tell you to do this? :P Blogger Skills » Blog SEO Part 1 |
|
#5
| ||||
| ||||
|
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] |
|
#6
| ||||
| ||||
|
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. |
|
#7
| ||||
| ||||
|
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
|
|
#8
| ||||
| ||||
|
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. |
| Thread Tools | |
| |
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 |