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. Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.