Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2010-12-31 01:27:59

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

#14 2011-01-01 11:46:44

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

Board footer

Powered by FluxBB