htaccess的 - 做你怎么做呢? http://www.example.com/domain.com怎么做、http、htaccess、www

2023-09-02 09:45:16 作者:借万里青山为隔

我想使用的财产以后如 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
 

利用John和L0phtCrack批量破解htpasswd

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