Page 1 of 1

problem with .htaccess

PostPosted: 12. May 2010 21:25
by jbaltrus
I have just installed newest version of xampp and I think I messed up something. I tried to open php and it would open as a text, so I did:

Open text editor and type:
RemoveHandler .htm. .htm
AddType application/x-httpd-php .php .htm .html
-Save the file as .htaccess (note the dot) and place in /opt/lampp/htdocs.

then I tried to start lampp and now window opens where it says

you have chosen to open
which is a: application/x-httpd
from http://localhost

I have deleted that .htaccess file from /opt/lampp/htdocs but it wouldn't go away now. So my question is:

how do I revert back so I can open localhost normally AND php would work without showing plain text?

thanks

Jonas

Re: problem with .htaccess

PostPosted: 12. May 2010 21:26
by jbaltrus
reinstalling xampp did not solve the problem, I bet this .htaccess is writte somehwere else now

Re: problem with .htaccess

PostPosted: 23. May 2010 03:36
by MC10
This is the "XAMPP for Windows" forum, not the "XAMPP for Linux" forum. That's here.