Closed Thread Icon

Topic awaiting preservation: php .htaccess wrapper Pages that link to <a href="https://ozoneasylum.com/backlink?for=28953" title="Pages that link to Topic awaiting preservation: php .htaccess wrapper" rel="nofollow" >Topic awaiting preservation: php .htaccess wrapper\

 
Author Thread
ajime
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Feb 2007

posted posted 02-16-2007 23:07

Hello everyone,

I'm trying to use a tutorial from http://www.webpronews.com/topnews/2004/04/29/htaccess-wrappers-with-php which outlines how to wrap one's code by using .htaccess. I'm developing on a windows box with the latest Appserv install.

In some of my earlier tests, I received an error telling me it couldn't open /header/header.php/test/sample.html when I tried to open /test/sample.html ... now, it's downloading an html page which is full of junky code.

I'm pretty confused by this, and obviously, I'm not familiar enough with htaccess to troubleshoot it.

Can anyone help me resolve this? It seems like a very solid system ... if I could get it to work.

Thanks,
Jesse

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-17-2007 19:30

hi ajime. welcome to the asylum.

looking at your error, (/header/header.php/test/sample.html) it looks like in your htaccess, the call to the header.php is not right. From the tutorial : Action headered /header/header.php This would be more of a *nix style directory structure.

If you try to open /test/sample.html and it is wanting to download the file and have a bunch of junk code in it, it sounds like your Appserv is not parsing the php right.

Also, make sure your http.conf file is set correctly to handle the htaccess files. Not sure how you are saving that file because Windows doesn't allow .htaccess to be saved like *nix does. Have a look here to get a good example of a way to save htaccess files for windows.

Hope that might help lead you in some sort of "right" direction.

Later,

C:\

« BackwardsOnwards »

Show Forum Drop Down Menu