Jump to content

Is it possible to make a .htaccess file read to a .php file?


jdock1

Recommended Posts

Meaning, I put code into .htaccess, and the server will see all .htaccess commands through a php file.

 

I need this done because Im creating a script that writes server commands to a php file. I dont think its possible to use fopen and fwrite or whatever to .htaccess files.

 

So is there anyway I can do this?

 

Thanks!!

Are you talking about something like myspace, or something more complecated, because you could have the system read the variables into two different things, one to create the page, and one to edit/rewrite the page, but it would be easier to pull that right from the database.

Are you talking about something like myspace, or something more complecated, because you could have the system read the variables into two different things, one to create the page, and one to edit/rewrite the page, but it would be easier to pull that right from the database.

 

Not really.

 

What I mean is this:

 

I wrote a few files that get input from a text field and put it into a php or text file. The input is actually server commands, and the file is name .htaccess.php or .txt

 

I did this to rename it to .htaccess by removing the extension.

 

Im wondering if there is a way that I can make a .htaccess file but with an extension as .php or .txt, and the server still be able to read it.

 

Im sure this would have to do with more server side admin, but not sure if there is a category about that on here.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.