有谁会改.htaccess内容
# BEGIN Bootbeta
<IfModule mod_rewrite.c>
DirectoryIndex index.html index.php
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^abc/(.*)$ abc/$1.php
#RewriteCond %{QUERY_STRING} ^name=(.+) [NC]
#RewriteRule ^domain.php$ /domain/%1? [R=301,L]
</IfModule>
# END Bootbeta
我想输入 localhost/123456后
调用localhost/del.php处理页面,但url还是123456
del.php取得这个123456
就像空间博客一样解析是怎么做的
高手帮看一下,在线泪奔等~~~~~~~~~~~~
------解决方案--------------------
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^/zph/(\d+)/?$ /del.php?id=$1&%1 [L,NC]
修改后服务器需要重启才能生效
------解决方案--------------------
http://blog.chinaunix.net/uid-20157058-id-1974554.html
PHP code
Options +Includes
SetOutputFilter INCLUDES
AcceptPathInfo On
------解决方案--------------------
------解决方案--------------------