MainelyDesign.com Blog

Htaccess Tagged Blog Posts

Network Solutions' Flawed .htaccess and Mod_Rewrite Rules Implementation

Posted on 08/06/2009 at 02:38 pm | Viewed 33,756 times | 7 comments

I can't believe it!  I spent hours trying to get the mod_rewrite rules working in .htaccess on Network Solutions' servers.  Everything I tried didn't work.  Using the default .htaccess (from Cake distribution) failed.  I've used the distribution on several servers and never had any issue with the rewrite rules.  However, Network Solutions's mod_rewrite works differently than [all] other servers.

Naming a Text File .htaccess on Windows

Posted on 05/13/2009 at 12:15 pm | Viewed 10,852 times | 0 comments

A big pain- you can't just name a file .htaccess through Windows Explorer.  It complains that you need to supply a name!  No problem.

Here's how you can name a file .htaccess (only tested on Notepad, though hopefully it will work on more):

  1. Load up your file in Notepad or create a new file in Notepad
  2. Add your .htaccess declarations
  3. File > Save As
  4. In the filename text box put ".htaccess" - with the double quotes (".htaccess" exactly)
  5. In the filetype select box choose 'All Files'
  6. Save it!

Making Apache Parse .html files as .php Files

Posted on 05/13/2009 at 12:09 pm | Viewed 12,098 times | 0 comments

When re-designing a site, or somehow being locked into a given web site structure that uses .html (or .htm) file extensions, it's a good idea to keep the file names the same (especially if the site has been around a while and has good search engine visibility).  Think you can't use PHP on .html or .htm web pages?  Think again.  With apache it's as easy as modifying the .htaccess file.

Full Tag List

Meet Site Avenger - Hosted Content Management System

Powered By: Site Avenger | Site Production: Saco Design