开发者社区> 问答> 正文

apache域名跳转怎么网址上多出个/来?

现在是输入xxx.com/123.htm 跳转到 www.xxx.com//123.htm 怎么多出个/来? 以下是.conf文件 <VirtualHost *:80>         DocumentRoot /alidata/www/s         ServerName www.xxx.com         ServerAlias xxx.com         DirectoryIndex index.html index.php index.htm         <Directory "/alidata/www/s">             Options -Indexes FollowSymLinks             AllowOverride all             Order allow,deny             Allow from all         </Directory>         <IfModule mod_rewrite.c>                 RewriteEngine On                 RewriteCond "%{HTTP_HOST}" "^xxx.com" [NC]                 RewriteRule "^(.*)$"   http://www.xxx.com/$1 [R=permanent,L]                 #RewriteRule ^(.*)-htm-(.*)$ $1.php?$2                 #RewriteRule ^(.*)/simple/([a-z0-9\_] \.html)$ $1/simple/index.php?$2         </IfModule>         ErrorLog "/alidata/log/httpd/s-error.log"         CustomLog "/alidata/log/httpd/access/s.log" common </VirtualHost>

展开
收起
noxun 2013-04-27 16:42:01 6955 0
3 条回答
写回答
取消 提交回答
  • 回2楼twl007的帖子
    还是不行啊
    2013-05-02 15:31:36
    赞同 展开评论 打赏
  • 回 楼主(noxun) 的帖子
    RewriteCond "%{HTTP_HOST}" "^xxx.com" [NC]
    把xxx.com改成"xxx.com/"试试看
    2013-04-28 00:18:15
    赞同 展开评论 打赏
  • 回 楼主(noxun) 的帖子
    你可以做个301转向的啊
    2013-04-27 22:05:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
域名大数据的应用 立即下载
“域”见更美好的未来——域名筑梦互联网+ 立即下载
“域”感——《域名投资从入门到精通》 立即下载

相关镜像