ipower shared server css html php .htaccess instant changes
Posted: Sat Nov 13, 2010 1:32 pm
So, if you like to test your website and see changes instantly, without iPower caching it, causing a wait of 30 mins to a few hours to see the changes, you can add a file called:
[.htaccess ] that's right no filename just an extension. as a windows user, god forbid an apple user, naming something with only an extension makes little or no sense, but the apache server picks it up and is meant to (hides it from visitors too).
you cannot edit a file and save it as [test.txt] then use explorer to rename to [.htaccess] you will get an error "you must type a file name". so...
so, simply open up [notepad.exe] and when saving, save as file name: [.htaccess] save as type [All files] and then press [save]
There is also a cache control area in the control panel you can uncache 4 areas or do this by hand.
.htaccess
that first line of code is optional. it allows website visitors to see the contents of a folder. great for testing, bad if you want to hide contents of any type (delete the line if you want folder privacy).
[.htaccess ] that's right no filename just an extension. as a windows user, god forbid an apple user, naming something with only an extension makes little or no sense, but the apache server picks it up and is meant to (hides it from visitors too).
you cannot edit a file and save it as [test.txt] then use explorer to rename to [.htaccess] you will get an error "you must type a file name". so...
so, simply open up [notepad.exe] and when saving, save as file name: [.htaccess] save as type [All files] and then press [save]
There is also a cache control area in the control panel you can uncache 4 areas or do this by hand.
.htaccess
Code: Select all
# Begin cache control #
ExpiresActive on
ExpiresActive off
<FilesMatch ".*">
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma
</FilesMatch>
# End cache control #
Options +Indexes