| Question about rewriting blog urls
|
dpinion

msg:4315275 | 2:18 pm on May 20, 2011 (gmt 0) | Greetings, I am hoping to simplify a task that I have. We currently have a blog that we are moving to a different platform. The current blog has our URL set up like so: blog.example.com/bid/#####/title-of-blog Where ##### are numbers generated by the blog host. On our new platform we are implementing wordpress and have moved the content of the blogs over. The current URL is something like: blog.example.com/title-of-blog I can remove the /bid/ portion of the URL, and I can manually insert lines to remove the numbers, but is there a way to have one condition replace /#####/ where it is any (all 5 digit) number? Thanks
|
debraleitl

msg:4315343 | 3:29 pm on May 20, 2011 (gmt 0) | What did you use to remove the /bid/ portion, I am looking for the same solution.
|
dpinion

msg:4315355 | 3:53 pm on May 20, 2011 (gmt 0) | Should be something like so: RewriteRule ^/bid/?(.*) /$1 [R=301,L]
|
debraleitl

msg:4315357 | 4:00 pm on May 20, 2011 (gmt 0) | TY
|
dpinion

msg:4315362 | 4:10 pm on May 20, 2011 (gmt 0) | Ok, so I have been reading and trying to figure this out. I am sure this will be wrong, but here is my first shot.. :) RewriteRule ^/bid/([0-9]+)/?(.*) /$1/ [R=301,L]
|
debraleitl

msg:4315455 | 6:33 pm on May 20, 2011 (gmt 0) | RewriteRule ^/item/([0-9]+)-?(.*) /$1/ [R=301,L] hoping to take domain.com/blog/item/####-title TO domain.com/blog/title
|
dpinion

msg:4315462 | 6:44 pm on May 20, 2011 (gmt 0) | yeah sounds like we are trying to do the same thing :)
|
|
|