Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: mod_rewrite htaccess help?
Hmm… this might be relevant in my case, mod_rewrite on (Joyent) virtual subdomains.
First slee… zzzzzz.
Edit: Looking at that now after some sleep, I don’t think that was the problem. Back to the drawing board.
Last edited by Destry (2010-12-31 10:48:56)
Offline
Re: mod_rewrite htaccess help?
With some quick help from the guys at stack overflow, I got the right rules, working great. No Joyent virtual directory issue at all…
RewriteCond %{HTTP_HOST} ^domain\.tld$
RewriteRule ^([0-9]+)/([a-z-]+)\.html$ http://$1.domain.tld/$2.html [NC,L,R=301]
Happy new year!
Offline