Talk:Mod rewrite

I just spent the last hour struggling with my .htaccess file trying to access my stats page from the DreamHost panel. Because I have Drupal 4.6.5 installed on my domain, it took me a while to get the .htaccess file written correctly to pass through to the stats page. Drupal 4.6.5 is a bit different than earlier versions of Drupal, so you have to sort of play with it to make it work.

At the bottom of the Drupal .htaccess file, you'll find that writing the following, just before the end/if tag will work:

I also had to go into the DreamHost panel and give the user a password (so I could be sure I was actually entering the correct password) to make it work. Now, I can get to my stats from the DreamHost control panel, and Drupal 4.6.5 passes the correct pages out to the browser. --The Evil Queen 17:57, 17 Jan 2006 (PST)

er duh ignore my note if its retained anywhere...I goofed !Embeddedrf 23:36, 20 Aug 2006 (PDT)embeddedrf

Since I did not start this page and someone seems to take ownership ( a good thing ) I thought I would try the method of suggesting a few additions instead of hauling off and just adding. Pay heed as I am a newbie at anything I do so anything I suggest will generally be things that others will either question or have doubt about at some point. Observations ( from my own experimenting...would be nice to be able to just read it! ) 1) specify that mod_rewrite can be done on a per directory basis 2) do you mind if I add a link to a fresh page showing another example for the .htaccess file ? These things appear arcane when you come in fresh as I am not really familiar with Apache,mod_rewrite. For this reason an extra example would not hurt.. well lemme know what you think. If you do not silence means approval as the REM song goes..... Embeddedrf 23:36, 20 Aug 2006 (PDT)embeddedrf

Redirect unused subdomains
Hello, I'm new to DreamHost and this Wiki.

Please help me out with the section 'Redirect unused subdomains'. I'm in the process of figuring this out myself for my new website, librenotgratis.org. I'm not sure whether the mod_rewrite stuff can be done from the panel or from a .htaccess file.

Actually, I think this behaviour should be the default for new users.

Thanks.

--JamesJRH 17:47, 21 March 2012 (PDT)


 * Those instructions were flat-out incorrect — they will not work for most DreamHost customers, so I've removed them. Andrew F 10:00, 22 March 2012 (PDT)

Linking to the .htaccess wiki page
There are two right ways to link to the page about the  file: Htaccess and .htaccess

And, there is a wrong way. Because a file named ".htaccess" has a special meaning to web servers, and wiki pages are files on a web server, the name ".htaccess", starting with a dot, doesn't work as the name of a wiki page. However, the wiki allows you to make a link to it anyway, which will display an error when the user clicks it.

--SteveWitham (talk) 17:08, 4 April 2014 (PDT)

This page has a a link ".htaccess" , rendered as ".htaccess". I expected that clicking on it would take me to a wiki page describing ".htaccess", a page very similar to http://wiki.dreamhost.com/index.php?title=.htaccess&redirect=no. However, when I click on it, instead I get the unexpected error "403 Forbidden nginx/0.8.53".

Is this something in the configuration of http://wiki.dreamhost.com/ that needs to be fixed? I bet many other people with a wiki hosted at DreamHost have a similar glitch. How can those people fix their wiki? --DavidCary (talk) 13:02, 9 February 2014 (PST)