English 中文(简体)
依据服务器名称/格式查阅的有条件说明
原标题:htaccess conditional statements based on server name/path

能否根据服务器名称/顺序在上网时撰写一些有条件的“如果”说明?

我知道,我可以使用<代码><IfModule>,但当开发和生产服务器相同时,这并没有解决问题。

感谢

最佳回答

您可测试的价值。 共和国:

RewriteCond %{SERVER_NAME} =foo
RewriteRule …
RewriteCond %{DOCUMENT_ROOT} =/path/to/document/root/
RewriteRule …
问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...