You are here: Re: function call in .htaccess ? « PHP Language « IT news, forums, messages
Re: function call in .htaccess ?

Posted by Peter on 01/30/08 16:20

(Apologies if this is sent twice, server issues it seems)

Hi,

I use something like this:

RewriteRule ^(.*).png$ ../../templates/png_help/$1.png

The links to png in my pages exist to this subdir, but in fact the png are
located somewhere else in a templates directory.
Now, I'm shuffeling folder layout, in part to support localisation etc.
therefore the location might differ based on variables.

Can I use external variables somehow in .htaccess ?
E.g. {TARGET_DIRECTORY}/templates/png_help/$1.png

Or call a function that outputs the directory ?
e.g. <?php echo DIR ?>/templates/png_help/$1.png

or .... ???

Your insights appreciated.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация