I made a CodeIgniter based website.
I write a .htaccess as suggested in http://codeigniter.com/wiki/mod_rewrite
Since I put my web directory in public_html/ci_try, It is necessary to change
RewriteBase /
into
RewriteBase /ci_try
But, everytime I change the location, I should edit htacess.
Is there a way to make such a "dynamic rewrite-base" or other way so that I don't need to repeat my self editing htaccess?
UPDATE :
For now I use php to generate htaccess. But I want to know if there is a better solution out there to be accepted
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…