Talk:Htaccess

From DreamHost
Revision as of 20:01, 8 June 2009 by Snowmaninthesun (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

.htaccess

The panel automatically adds www in front of my hosts for this option. Now I have it to remove the www in the hosting option. I tried putting in a .htaccess file anyway, and I can't find it anywhere on my site. Naturally it's not blocking anyone. Could the second issue be the result of the first? Why does it add www in from the domains? Dori | Talk 16:14, 3 Jun 2006 (PDT)
--- Check your settings for that domain in your panel. There's an option for removing www or adding www or allowing both. -- Schietschijf 03:53, 23 Oct 2006 (PDT)

Subversion Link

Changed the link it pointed to, since the FAQ for Subversion does not account for the limitations on how the scripts are run on the DH servers. The svn module runs as dhapache, and so it cannot directly update the repository. The updates, instead, have to be done via the work-around posted in the DH wiki. Tyranno 02:49, 18 October 2008 (UTC)

Additional Info

Can someone please add some basic information about where to put a .htaccess file?

For instance if you have a ruby on rails app hosted at <myaccount home directory>/<my ror app name>/current/public

you should place your .htaccess file in this directory if you wish it to apply to all of your application. The .htaccess file should be saved as a text/ascii file and not in binary format. Also to test to see if your .htaccess file is written correctly if you put this code into it, and then visit your website you should be redirected to example.com

Redirect 301 / http://www.example.com/


Coming up with this basic info took me a few hours, and it would be nice to save others a little bit of time. I don't like dealing with wiki formatting/content cops, so someone please make someones day and put this info (or a derivative of it) in this article.