problem with .htaccess

Problems with the Windows version of XAMPP, questions, comments, and anything related.

problem with .htaccess

Postby jbaltrus » 12. May 2010 21:25

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
jbaltrus
 
Posts: 4
Joined: 07. March 2010 22:06

Re: problem with .htaccess

Postby jbaltrus » 12. May 2010 21:26

reinstalling xampp did not solve the problem, I bet this .htaccess is writte somehwere else now
jbaltrus
 
Posts: 4
Joined: 07. March 2010 22:06

Re: problem with .htaccess

Postby MC10 » 23. May 2010 03:36

This is the "XAMPP for Windows" forum, not the "XAMPP for Linux" forum. That's here.
MC10
 
Posts: 148
Joined: 20. February 2010 20:13


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 51 guests