【发布时间】:2011-03-05 13:00:02
【问题描述】:
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} ^(www.)?url.com$
RewriteRule ^(/)?$ www-static [L]
</IfModule>
好的,上面的 apache 配置运行良好。是的
url.com to url.com/www-static = www.myurl.com/www-static
1.我们可以在 apache 中做类似的事情吗?
url.com = www.myurl.com/www-static without adding the /www-static on the url ?
2。在 php 中怎么样?还是在apache上更好? (假设我们有数千个域重定向到我们从数据库中获取的特定文件夹)
感谢关注
亚当斋月
【问题讨论】:
标签: php apache .htaccess redirect