htaccess的 - 做你怎么做呢? http://www.example.com/domain.com [英] .htaccess - How do you do this? http://www.example.com/domain.com

查看:148
本文介绍了htaccess的 - 做你怎么做呢? http://www.example.com/domain.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的财产以后如 http://www.example.com/domain.com而不是 http://www.example.com/index.php?url= domain.com

我怎么能做到这一点使用的.htaccess?

更新:我终于理解了它。 :)

  RewriteEngine叙述上
的RewriteCond%{} REQUEST_FILENAME!-f
重写规则^(。+)$的index.php?URL = $ 1
 

http://www.pagerankcheckertool.com/facebook.com

解决方案

  RewriteEngine叙述上
重写规则^(。+)$的index.php?URL = $ 1
 

i want to use somthing like http://www.example.com/domain.com instead of http://www.example.com/index.php?url=domain.com.

how can I do this using .htaccess?

update: i finally figured it out. :)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1

http://www.pagerankcheckertool.com/facebook.com

解决方案

RewriteEngine on
RewriteRule ^(.+)$ index.php?url=$1

这篇关于htaccess的 - 做你怎么做呢? http://www.example.com/domain.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆