| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|Question about rewriting blog urls|
| 2:18 pm on May 20, 2011 (gmt 0)|
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:
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:
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?
| 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.
| 3:53 pm on May 20, 2011 (gmt 0)|
Should be something like so:
RewriteRule ^/bid/?(.*) /$1 [R=301,L]
| 4:00 pm on May 20, 2011 (gmt 0)|
| 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]
| 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
| 6:44 pm on May 20, 2011 (gmt 0)|
yeah sounds like we are trying to do the same thing :)
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved