Xeoncross Posted June 20, 2008 Share Posted June 20, 2008 Is it possible to create a temporary variable for use within a .htaccess file? I ask because I type a certain term (that changes) 5+ times in different parts of the file and I would rather just define it once and use that variable in the rest of the .htaccess file. Note: I am NOT talking about rewriting a URL to pass a variable. Link to comment https://forums.phpfreaks.com/topic/111175-using-variables-within-htaccess-not-mod_rewrite/ Share on other sites More sharing options...
Xeoncross Posted June 28, 2008 Author Share Posted June 28, 2008 bump Link to comment https://forums.phpfreaks.com/topic/111175-using-variables-within-htaccess-not-mod_rewrite/#findComment-576780 Share on other sites More sharing options...
trq Posted June 29, 2008 Share Posted June 29, 2008 Nope, you cannot define variables within a .htaccess file. Link to comment https://forums.phpfreaks.com/topic/111175-using-variables-within-htaccess-not-mod_rewrite/#findComment-577092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.