Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have Apache 2.2.17 using the WAMPServer 2.1 installation. I am debugging a website fully local on my computer.

I have the following rule in the .htaccess:

# Use PHP5 Single php.ini as default  
AddHandler application/x-httpd-php5s .php  
Options +FollowSymlinks  
RewriteEngine on

Rewritebase /  
RewriteRule ^bella/(.*)/(.*)$ beauty.php?beauty_id=$1 [L]  
RewriteRule ^(argentina|brasil|chile|colombia|espana|mexico|rep_dominicana|uruguay|venezuela|peru|bolivia|cuba|ecuador|panama|paraguay|puerto_rico)/$ country.php?name=$1 [L]  
RewriteRule ^(argentina|brasil|chile|colombia|espana|mexico|rep_dominicana|uruguay|venezuela|peru|bolivia|cuba|ecuador|panama|paraguay|puerto_rico)/(hi5|facebook|twitter|orkut)/$ socialnetw.php?country=$1&category=$2 [L]  

The problem When I enable this rule and try to access http://localhost/index.php using FF I get a download dialog for the PHP file. If I comment the Rewrite* part in the .htaccess file then the index.php file loads fine, but navigation in the page is broken...

share|improve this question

1 Answer 1

Apparently this is a combinations of several things. Here is what I ended up doing.
I decided to uninstall WAMP and install Apache,PHP and MySQL manually. Then I encountered the same problem, but I used the right search query in Google to find out that the problem was with the AddType and AddHandler directives in httpd.conf. After that I had additional problems in the php.ini file with the timezone configuration, but now the php pages are parsed and shown correctly.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.