View Single Post
Old Dec 4th, 2005, 11:48 PM   #9
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
.htaccess....I just took a crash course in mod_rewrite and php today. Ow.

I decided that it would be nifty to have all my site data in xml files and have them transformed by the browser using an XSL stylesheet. Works like a charm. However, there's the small detail that search engines and xml+xsl don't mix. So I proceeded to write a script that parsed the xml and returned an overly simplified version of the page. I combined that with two mod_rewrite rules, one to redirect Googlebot to the /basic directory and another to cause the imaginary /basic directory to map to my script. It works...finally.

Back on the topic, some php directives can be set in .htaccess while others must be in httpd.conf/php.ini. This page gives the breakdown. The ones listed as PHP_INI_SYSTEM can only exist in the server config/php.ini while the others can be in .htaccess. These commands are the ones used to set the directives from the Apache files rather than PHP.ini. Wow...didn't know any of that this morning
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote