Forum Moderators: phranque

Message Too Old, No Replies

got .htaccess to redirect, but lost parse functionality

pages get downloaded instead of showing

         

mohney64

1:06 am on Apr 15, 2008 (gmt 0)

10+ Year Member



Hi,

New to the forum. How's it going?

I have been toying with .htaccess lately, and got it to redirect correctly.

The problem is, now, apache doesn't actually ever serve the pages! When I have .htaccess set up, the files get downloaded as plain text through the browser.

If I create a file sean.php, and have .htaccess redirect to index.php, the browser will download index.php as if it was some file server instead of apache parsing the file!

Here are the changes I made to my httpd.conf:

297,298c297,298
< Options FollowSymLinks
< AllowOverride All
---
> Options SymLinksIfOwnerMatch
> AllowOverride None
327c327
< AllowOverride All
---
> AllowOverride None

Hope this is obvious to someone.

Thanks for the help!

-Sean

mohney64

1:08 am on Apr 15, 2008 (gmt 0)

10+ Year Member



Sorry, but that diff is actually a reverse diff. I use perforce and sync'd to my previous version so that I could get the webpages showing correctly again. So, in the above example, I actually put "FollowSymLinks" in instead of "SymLinksIfOwnerMatch", just reverse the arrows :)

sorry to be confusing!