[Radiant] 301 Redirects (and stripping out www/subdomains)

Zara undisclosed at gxxxl.com
Tue Apr 24 14:10:13 CDT 2007


First of all, apologies in advance for such a n00b question.

I've just performed a fresh install of Radiant 0.6

My usual practice when setting up a site is to immediately strip www
from the URL (via mod rewrite and a 301 redirect), however my attempts
to modify the .htaccess file in Radiants 'public' folder have
accomplished nothing.


.htaccess is currently as it was immediately after install. My current
issue is that the following URL's all serve the same page:

http://example.com
http://www.example.com
http://anythingelseyoucaretotry.example.com


Does anyone have any suggestions as to how I can accomplish my goal? I
don't expect to be hand-held, but if there are resources that I've
overlooked I'd appreciate a shove in the right direction. (A trawl of
the web and assorted forums hasn't produced any relevant info).

Thanks in advance.




P.S.
===
I'm using Media Temple. The following can be found immediately after
'RewriteEngine On'.
===
#MTSTART -- Automatically generated, don't modify --
RewriteCond %{REQUEST_FILENAME}   !-f
RewriteRule ^(.*)$ http://xx.x.xxx.xxx:2010/${escape:$1} [P]
#MTEND

-- 
Posted via http://www.ruby-forum.com/.



More information about the Radiant mailing list