Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-02-23 21:44:10
- vurt
- Member
- Registered: 2010-10-22
- Posts: 50
regular expression assistance for mod_rewrite
I need to 301 redirect some old Wordpress links to a new TXP site.
An example of the Wordpress URL structure is: http://subdomain.domain.com/2011/02/03/article-title/
I need to permanently redirect all URLs to this structure: http://www.domain.com/subdomain/article-title
If it were just an issue with the subdomain I’d be fine, but the timestamp is giving me problems (and the dates stretch over a couple of years), and I need to eliminate them altogether while retaining the article-titles.
I also need to retain the top level sections so that http://subdomain.domain.com/ resolves to http://www.domain.com/subdomain/
Any htaccess gurus willing to offer some enlightenment?
Last edited by vurt (2011-02-25 18:11:36)
Offline
#2 2011-02-25 13:33:28
- vurt
- Member
- Registered: 2010-10-22
- Posts: 50
Re: regular expression assistance for mod_rewrite
Is it something I said? [crickets…]
Offline
#3 2011-02-25 17:51:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: regular expression assistance for mod_rewrite
vurt wrote:
Is it something I said? [crickets…]
I don’t think so :) You might want to change the subject line so it’s clear that you need help with regular expressions… ;)
Offline