Problem after .htaccess edit

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
MarkHoward
Forum Newbie
Posts: 21
Joined: Sun Nov 22, 2009 7:15 pm

Problem after .htaccess edit

Post by MarkHoward »

This is a bit complicated:
I wanted to execute some PHP from within an HTML file.
I found a reference that said to add the following lines to the public_html/.htaccess file

Code: Select all

RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
 
The .htaccess file was previously empty.
When I tried to enter the site after that I got a Firefox message saying
You have chosen to open (blank) which is a: PHP file from http://www.nzmotorhome.co.nz
o Open with
o Save file
I replaced the .htaccess file with an empty file again.
Same problem
Deleted cache rebooted same problem
Tried IE same problem
Tried IE on a different computer same problem.
Contacted webhost - they can access it no problems - so can some of the website members that I contacted.
But neither of the computers that I have access to can get access.
I THINK that there is something funny where people who access the website http://www.nzmotorhome.co.nz get redirected to http://www.nzmotorhome.co.nz/NZMotorhomeForum/ but I can't remember how this happens and don't know whether it has any bearing on the problem.
I really don't know how to sort this problem out by myself.
godwinsam
Forum Newbie
Posts: 9
Joined: Wed Sep 16, 2009 11:01 pm

Re: Problem after .htaccess edit

Post by godwinsam »

Hello,

Please find the following link,
http://yopensource.com/en/tutorials/joo ... developer-
Here we can see the 16 steps in .htaccess for developers.
Please find it..
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Problem after .htaccess edit

Post by Doug G »

Check your apache error logs. Maybe your server is configured to prevent overrides in .htaccess
Post Reply