Forum Moderators: phranque
AddHandler application/x-httpd-php txt i have also tried:
AddType application/x-httpd-php txt and even switched the php & txt around, but all i was able to do was show the source code of my php file.
is there another method to using this, perhaps?
all they offer in their faq is this: [help.godaddy.com...]
(yes i do have configuration 2.0)
if their suggested method works to rewrite php5 to .php, why wouldn't it also work for .txt?
i have tried contacting their ever-so useless support, but they just sent me a cut & paste saying they can't help me with coding or specific instructions (how useful!)
i have access to a php.ini file as well.
Once the .htaccess file is identified, every change in it will have effect immediately.
My experience with GoDaddy shared hosting plans, is that they have some caching system for .htaccess files. When you add one, it won't work until a few hours or a day later after the caching system has picked up the location of the .htaccess file.Once the .htaccess file is identified, every change in it will have effect immediately.
are you running PHP5 and would you need to use that handler instead?
that's awful.. how the heck are you supposed to know if whatever you just did threw a 500 response?
If you receive a 500 response, the .htaccess is read by the web server, so it is not the caching problem I mentioned above. With the caching problem the server simple ignores the settings in the .htaccess. As soon as the .htaccess is identified, every change in it will immediately be seen by the webserver and be visible on the site.