Home >Backend Development >PHP Tutorial >有哪位高手会改.htaccess内容

有哪位高手会改.htaccess内容

WBOY
WBOYOriginal
2016-06-13 10:17:28946browse

有谁会改.htaccess内容
# BEGIN Bootbeta

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]

# 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 +IncludesSetOutputFilter INCLUDESAcceptPathInfo On<br><font color="#e78608">------解决方案--------------------</font><br>
探讨

引用:
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^/zph/(\d+)/?$ /del.php?id=$1&%1 [L,NC]

修改后服务器需要重启才能生效
文件未找到404

------解决方案--------------------
探讨

引用:

引用:

引用:
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^/zph/(\d+)/?$ /del.php?id=$1&amp;amp;%1 [L,NC]

修改后服务器需要重启才能生效
文件未找到404

写错了,不好意思,应该是

Re……
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn